Implementation of Conway's Game of Life in C++ using the SFML graphics library.
The only nonstandard dependency is SFML, a graphics library for rendering in C++
The executable is built with g++ to a file named gameoflife
, via the make
command.
make clean
will clear any object and executable files lingering, as well as resetting the output image.
Once built, run the executable with ./gameoflife
.
The game simulation is run with:
- The right arrow key, advancing one step
- The space button (hold), advancing one step every frame (60x per second)
- The "Q" key exits the game
Interaction with the playing field is as follows:
- Left mouse button (click) will toggle a cell
- Right mouse button (hold) will "paint" as long as it is held, changing to the opposite of the cell initially clicked
- The "C" or "R" key will clear the field
- Wrapped boundaries
- Automatic boundary extension