Skip to content

johnmatthiggins/life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

Game of Life Demo

Build

make build

Run

./life

By default this will run the program with no cells filled in.

If you want to fill in a cell, you have three different shapes you can use:

  • Acorn
  • Glider
  • Square

You use a flag bearing the same name as the target shape and then you specify the x and y coordinates as the next two arguments after the shape name. Here's an example:

./life --glider 20 25
./life --acorn 10 35

They can also be combined to spawn multiple shapes on the same board.

./life --acorn 10 35 --square 0 0

About

The game of life implemented in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published