Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
Field represents a two-dimensional field of cells.
func (*Field) Alive ¶
Alive reports whether the specified cell is alive. If the x or y coordinates are outside the field boundaries they are wrapped toroidally. For instance, an x value of -1 is treated as width-1.
type Life ¶
type Life struct {
// contains filtered or unexported fields
}
Life stores the state of a round of Conway's Game of Life.
Click to show internal directories.
Click to hide internal directories.