package
Version:
v0.0.0-...-b914508
Opens a new window with list of versions in this module.
Published: Oct 30, 2018
License: Unlicense
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Life struct {
Generation int
Width int
Height int
}
Life contains all data about the current game
New returns a new Life structure
Get returns a reference to the current buffer. Treat this as read-only!
func (l *Life) Randomize()
Randomize fills the life grid randomly
Step runs a single generation
Steps runs a number of steps
Source Files
¶
Click to show internal directories.
Click to hide internal directories.