I was after a tui implementation of Conway's Game of Life to keep me occupied while I should be working and decided I'd make one for the fun of it.
You'll need git, CMake, make, and the NCursesW library.
git clone https://github.com/BodneyC/game-of-life
cd game-of-life
cmake . && make
./bin/golc
Usage is based on key presses, mappings are as follows:
Key | Short for | Desc. |
---|---|---|
r |
Run | Run the automaton |
b |
Backup | Save the state of the program (active cells) |
R |
Restore | Restore the screen to the state saved with b |
i |
Iterate | Perform a single, manual iteration |
s |
Speed | Reduce the interval rate, speed up |
S |
Slow | Increase the interval rate, slow down |
- Click around on the screen, highlight some cells
- Hit
r
and see it move about a bit