ui

package
v0.0.0-...-04ad173 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameOfLife

type GameOfLife interface {
	// Height returns the height of the game area
	Height() int

	// Width returns the width of the game area
	Width() int

	// Set allows initial data to be set
	Set(x, y int, alive bool)

	// Get allows the UI to get the value at a location for rendering
	Get(x, y int) bool

	// Step advances the game by one instant, recomputing and updating all cells.
	Step()
}

GameOfLife defines the methods requried to render a game of life

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL