Conways game of life
| .gitignore | ||
| Life.cpp | ||
| Life.h | ||
| main | ||
| main.cpp | ||
| README.md | ||
Game of Life
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
Installation
Clone this repository then compile with ncursesw.
git cone git://philipj.ydns.eu/Game-of-Life.git
cd Game-of_Life.git
g++ *.cpp -lncursesw -o game-of-life
Instructions
Move around the screen with hjkl, wasd, or arrow keys. Insert or remove a cell by pressing spacebar. When you are done placing cells press q or enter and the game will start. It ends when there are no more live squares. You can change the time between frames with increments of 100 by pressing jk ws or arrow keys. End a game by pressing q or ESC.
Command line arguments
You may specify the wait time in milliseconds between updates. Default is 500.