conway

package
v0.0.0-...-32cbd93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2024 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcornConfig

func AcornConfig(width, height int) []core.Coordinate

func BasicSeedConfig

func BasicSeedConfig(width, height int) []core.Coordinate

func CGOLToImage

func CGOLToImage(cgol *core.CellularAutomata[bool], filepath string, scale int) *image.Gray

func ConwayGameOfLife

func ConwayGameOfLife(width, height, steps int) *core.CellularAutomata[bool]

func ConwayGrid

func ConwayGrid(width, height int) *core.Grid[bool]

func ConwayRuleSet

func ConwayRuleSet(cell *core.Cell[bool], neighbors []*core.Cell[bool]) *core.Cell[bool]

func GliderConfig

func GliderConfig(width, height int) []core.Coordinate

func MainConway

func MainConway(width, height, steps int, initConfig []core.Coordinate)

func MainSeeds

func MainSeeds(width, height, steps int, initConfig []core.Coordinate)

func PrintCGOL

func PrintCGOL(cgol *core.CellularAutomata[bool])

func Seeds

func Seeds(width, height, steps int) *core.CellularAutomata[bool]

func SeedsRuleSet

func SeedsRuleSet(cell *core.Cell[bool], neighbors []*core.Cell[bool]) *core.Cell[bool]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL