tpjwm / game-of-life

Conway's Game of Life implemented in C++ using Cinder library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conway's Game Of Life

Image of UI Gif of a glider

This program runs Conway's Game Of Life using Cinder, a C++ graphics library.

Description

The Game of Life, also known simply as Life, is a cellular automation devised by the British mathematician John Horton Conway in 1970.

It is a zero-player game, meaning its evolution is determined by its initial state, requiring no further input.

It takes place in a 2D grid of cells each of which is in one of two possible states: alive or dead.

Every cell interacts with its eight neighbors, which are cells horizontally, vertically, and diagonally adjacent.

At each step in time each step follows the following rules:

  • Any live cell with fewer than two live neighbours dies, as if by underpopulation.
  • Any live cell with two or three live neighbours lives on to the next generation.
  • Any live cell with more than three live neighbours dies, as if by overpopulation.
  • Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

Set Up

Controls

  • Reset Button - Resets the simulation and board
  • Start Button - Starts the simulation, disables user shading
  • Left Click - On a cell to shade it or unshade it
  • Speed Up - Increase the simulation speed
  • Speed Down - Decrease the simulation speed

About

Conway's Game of Life implemented in C++ using Cinder library


Languages

Language:C++ 93.9%Language:CMake 6.1%