Documentation ¶
Index ¶
- Variables
- type CellType
- type Grid
- type Manager
- func (m *Manager) Cells() Grid
- func (m *Manager) Clear()
- func (m *Manager) Load(path string) error
- func (m *Manager) Reset()
- func (m *Manager) Running() bool
- func (m *Manager) Save(path string) error
- func (m *Manager) Start()
- func (m *Manager) Stop()
- func (m *Manager) Store()
- func (m *Manager) Update()
- type Position
- type ReproduceType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Interval is the time between grid updates in milliseconds.
Interval = 100
)
View Source
var ( // ReproduceMethod is the method of reproduction used when a cell becomes alive. ReproduceMethod = ReproduceTypeMajorityWins )
Functions ¶
This section is empty.
Types ¶
type Grid ¶ added in v1.1.0
Grid is a grid of values of any type.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager controls the grid updates.
type Position ¶ added in v1.1.0
Position is a 2D point in space.
func NewPosition ¶ added in v1.1.0
NewPosition will create a new position.
type ReproduceType ¶
type ReproduceType int
ReproduceType is the type of logic used to determine cell type when it becomes alive.
Click to show internal directories.
Click to hide internal directories.