BodneyC / game-of-life

Conway's Game of Life in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conway's Game of Life in C

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.

game-of-life

Installation

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

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

Practical Usage

  1. Click around on the screen, highlight some cells
  2. Hit r and see it move about a bit

About

Conway's Game of Life in C

License:GNU General Public License v3.0


Languages

Language:C 96.4%Language:CMake 3.6%