Skip to content

Simple implementation of the Game Of Life in C++ (using OpenGL)

License

Notifications You must be signed in to change notification settings

realmar/game-of-life-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Of Life

Reference: Wikipedia: Game of Life and Wikipedia: Cellular Automata

This is a simple implementation of the game of life in a finite space using c++ and opengl.

With finite space I mean that the cells will interact with the border of the window as if their world ends there.

Controls

c: clear screen
s: start simulation
r: randomize cells

mouse click: toggle cell
mouse drag: revive cells

# models
1: glider gun
2: acron

Compile

$ git clone https://github.com/realmar/game-of-life-cpp.git
$ cd game-of-life-cpp

# install depedencies
$ vcpkg install opengl freeglut

# compile
$ cmake CMakeLists.txt

# linux
$ make
# windows
$ msbuild game-of-life.sln

About

Simple implementation of the Game Of Life in C++ (using OpenGL)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published