Documentation ¶
Index ¶
- Constants
- type Cell
- func (c *Cell) Age() int
- func (c *Cell) Alive() bool
- func (c *Cell) Degrading() bool
- func (c *Cell) Name() string
- func (c *Cell) Neighbors() []*Cell
- func (c *Cell) SetName(name string)
- func (c *Cell) Step() bool
- func (c *Cell) String() string
- func (c *Cell) ToDead() bool
- func (c *Cell) ToLife() bool
- func (c *Cell) X() int
- func (c *Cell) Y() int
- type World
- func (w *World) Age() int
- func (w *World) Cell(x int, y int) (*Cell, error)
- func (w *World) CreateWorld()
- func (w *World) GetCell(x int, y int) *Cell
- func (w *World) ImmunityRecovery()
- func (w *World) MaxImmunity() int
- func (w *World) NoImmunityRecovery()
- func (w *World) Print()
- func (w *World) Procreate(p func() bool)
- func (w *World) Step()
- func (w *World) ToDead(x int, y int) bool
- func (w *World) ToLife(x int, y int) bool
- func (w *World) X() int
- func (w *World) Y() int
Constants ¶
View Source
const (
CHSIZE = 1000000
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type World ¶
type World struct { NotificationCh chan Cell // contains filtered or unexported fields }
func (*World) CreateWorld ¶
func (w *World) CreateWorld()
func (*World) ImmunityRecovery ¶
func (w *World) ImmunityRecovery()
func (*World) MaxImmunity ¶
func (*World) NoImmunityRecovery ¶
func (w *World) NoImmunityRecovery()
Click to show internal directories.
Click to hide internal directories.