randomwalk

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MainRandomWalk

func MainRandomWalk(width, height, steps int)

func PrintRandomWalk

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

func RandomWalk

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

func RandomWalkRuleSet

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

pick a neighbor randomly as the next place to go and set that state to true

func RandomWalkToTimage

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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