Skip to content

mpolosak/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

game-of-life

Conway's Game of Life in C++.
Compiling and running on Windows and Linux (probably other Unix-like systems too)
Allows:

  • setting custom rules
  • drawing a board using a mouse
  • saving a board to a text file or an image (PNG, BMP, TGA)
  • loading a board from a text file or an image (PNG, BMP, TGA)
  • changing colors of the game
  • setting a background of the game

Dependencies

Building on Linux

Required software

Building and installation

cmake -B build
make -C build
sudo make -C build install

Building AppImage

cmake -B build
make -C build AppImage

Building on Windows

Required software

Building

cmake . -G "MinGW Makefiles"
mingw32-make

Running

Run by typing game-of-life into terminal.
Type in game-of-life -h to see allowed options.
Press tab if you want to stop simulation and draw blocks of board using mouse.
Press Enter or Tab to start end drawing and start simulation.
End simulation by pressing Escape.