Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LineDrawer ¶
type LineDrawer interface { // DrawLine draws a line of cells. The length of the cells slice // will be the value passed to the NewLineDrawer function; // each element will contain only values from 0 to numStates-1. DrawLine(cells []int) }
LineDrawer is implemented by a display that can show successive lines of a 1-dimensional cellular automaton.
type NewFunc ¶
type NewFunc func(numCells, numStates int) (LineDrawer, error)
Click to show internal directories.
Click to hide internal directories.