ebiten/examples/life
dericmiller 7ee8d1aa5f examples/life: Fix initial world randomization (#1045)
Because golang executes the init function after establishing
the variables in the var block, the random number seed wasn't
initializing until after the initial world state had gotten
established (leading to an identical game of Life on every run).
To fix this, we establish an empty world in the var block,
and then populate it in the init function after the random
number generator has been seeded.
2020-01-06 13:09:51 +09:00
..
main.go examples/life: Fix initial world randomization (#1045) 2020-01-06 13:09:51 +09:00
README.md Add examples/life (#182) 2016-07-08 00:26:38 +09:00

Conway's Game of Life

The original project is martinlindhe/gol by Martin Lindhe.

License

MIT