Skip to content
/ conway Public

Tiny Conway's Game of Life implementation in C

Notifications You must be signed in to change notification settings

ivaaane/conway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

Matrix greenrain screensavers are getting old!

This is a fairly simple implementation of Conway's celular automaton The Game of Life, directly available from the terminal. Now there is a tiny living world in your workspace :3

Right now the only initial configuration is The R-pentomino (this one):

 #
##
 ##

Usage

Execute:

conway

Options:

flag description
-c [char] The character representing a living cell
-d [int] The delay time between ticks
-r Randomizes the initial generation
-l [int] Limits the number of generations
-h Show help

Other example:

conway -c 8 -d 25

Install

git clone https://github.com/ivaaane/conway.git
cd conway
sudo make install

Roadmap

  • Thing works.

  • More default configurations.

  • Option to input custom configuration.

  • Option to limit the number of generations.

  • Option to randomize the initial configuration.

  • Color options.