Command-line tool to create .png snapshots of cellular automata and Conway's game of life simulations. Snapshots are automatically saved to snaps directory.
Install dependencies:
mix deps.get
Start it up:
iex -S mix
CellularAutomata.main(rule_int, num_rows)
CellularAutomata.main(30, 1000)
CellularAutomata.main(150, 1000)
Feed cellular automata for given ruleset with given number of rows through game of life for given number of rounds:
CellularAutomata.main(rule_int, num_rows, rounds)
A .png snapshot will be taken for each round (gifs sold separately).
CellularAutomata.main(30, 100, 250)
CellularAutomata.main(54, 100, 250)
CellularAutomata.main(60, 100, 250)
CellularAutomata.main(129, 100, 50)
CellularAutomata.main(205, 100, 50)
CellularAutomata.main(222, 100, 50)
CellularAutomata.main(37, 100, 50)
CellularAutomata.main(76, 100, 50)
Generate random board of given width and height, feed it through game of life for given number of rounds:
GameOfLife.main(width, height, rounds)
GameOfLife.main(200, 200 ,150)