* Add a conways game of life example * Rustfmt conway example * Respond to review feedback (p_width/p_height) * Use line_drawing instead of manual bresenham * Optimize count_neibs * Remove inline(never) leftover from when profiling * Bring back wrapping behavior (without regressing perf) * Fix missing bounds check
12 lines
295 B
Markdown
12 lines
295 B
Markdown
# Conway's Game of Life
|
|
|
|
![Conway's Game of Life](../../img/conway.png)
|
|
|
|
|
|
## Controls
|
|
|
|
- Mouse: Left click toggles cells, dragging draws lines.
|
|
- <kbd>P</kbd>: Toggle pause.
|
|
- <kbd>space</kbd>: Frame step (enables pause if not already paused)
|
|
- <kbd>R</kbd>: Randomize
|
|
- <kbd>escape</kbd>: Quit
|