This is my implementation of Conway's Game of Life written in C++ using the SFML library. This program is created for educational purpose, as I am learning to program in C++.
There are several decisions that I made regarding this implementation:
- The grid is wrapped.
- The initial state is random.
- User can pause/play by pressing the
p
key. - User can toggle live/dead cell by clicking on the cell (only during pause).
- User can change speed using left/right arrow keys.
Below is the preview: