Conways game of life
Find a file
2021-02-16 15:00:45 +01:00
.gitignore working game 2021-02-14 00:08:56 +01:00
Life.cpp fixed getgrid function to use proper buffer define 2021-02-16 15:00:45 +01:00
Life.h working game 2021-02-14 00:08:56 +01:00
main fixed getgrid function to use proper buffer define 2021-02-16 15:00:45 +01:00
main.cpp cursor now starts in the middle of the screen to encourage placement in the middle 2021-02-15 13:39:37 +01:00
README.md added how to exit game to readme 2021-02-14 11:12:15 +01:00

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.