Skip to content

anhol0/conways_game_of_life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

This is my implementation of the Conway's Game of Life written entirely in C.

The game has all the concepts of the original game. It also has ability to create and load save files.

Navigation

  • Arrows - move viewport to the corresponding direction
  • P - Play/Pause the game
  • LMB - draw new cell
  • RMB - remove the cell
  • C - clear screen while animation is paused
  • -/= to decrease/increase scale of the map
  • R - to randomize cells in the viewport (only when simulation is paused)
  • Ctrl+S - save the game to file called 'savefile' (it will be overwritten if saved multiple times)

Building from source

In the project directory:

make

To install the game:

make install with optional PREFIX="/your/location/of/choice" to install program, to custom location

Uninstalling

In project directory:

make uninstall with PREFIX="/your/location/of/installation" if custom PREFIX was used while installing

make clean to clean the binaries from build direction

Launching:

gameoflife to run the game with clean map

gameoflife -s <path to the savefile> to load the savefile into the game

gameoflife -f <name of the savefile> to set the custom name for the savefile (default is the savefile)

Credits:

About

My Conway's Game of Life implementation with some extra features

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors