Documentation
¶
Index ¶
- Constants
- func Draw(ap *ansipixels.AnsiPixels, c *Conway)
- type Cell
- type Conway
- func (c *Conway) At(x, y int) Cell
- func (c *Conway) Clear(x, y int)
- func (c *Conway) ClearCurrent(x, y int)
- func (c *Conway) Copy(x, y int)
- func (c *Conway) Count(x, y int) Cell
- func (c *Conway) Glider(x, y int)
- func (c *Conway) Next()
- func (c *Conway) Randomize(fillFactor float32)
- func (c *Conway) SafeSet(x, y int)
- func (c *Conway) Set(x, y int)
- func (c *Conway) SetCurrent(x, y int)
- type Game
- type GameState
Constants ¶
View Source
const ( Paused = "Paused" Running = "Running" )
Variables ¶
This section is empty.
Functions ¶
func Draw ¶
func Draw(ap *ansipixels.AnsiPixels, c *Conway)
Types ¶
type Conway ¶
func (*Conway) ClearCurrent ¶
func (*Conway) SetCurrent ¶
type Game ¶
type Game struct { AP *ansipixels.AnsiPixels C *Conway State GameState ShowInfo bool ShowHelp bool Generation uint64 Delta int // which 1/2 pixel we're targeting with the mouse. HasMouse bool Extra func() // contains filtered or unexported fields }
func (*Game) HandleMouse ¶
func (g *Game) HandleMouse()
Click to show internal directories.
Click to hide internal directories.