Skip to content

sgelb/gameoflife

Repository files navigation

Game of life

Simple implementation of Conways's »Game of Life«, written in C++ and using QT5.

Rules

  1. Any live cell with fewer than two live neighbours dies, as if caused by under-population.
  2. Any live cell with two or three live neighbours lives on to the next generation.
  3. Any live cell with more than three live neighbours dies, as if by overcrowding.
  4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

ScreenShot

Features

  • start, pause and clear game
  • randomly populate board with alive cells
  • adjustable ratio of alive cells for population
  • adjustable speed of iterations
  • statistics (number of iterations and cells alive)
  • create patterns by drawing on board

Todo

  • toggle wrap
  • custom board size
  • prefabricated patterns
  • save/load boards

About

Conway's Game of Life, using C++ and QT5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published