C++ object oriented implementation of Conway's Game of Life for Basic Data Structure classes.
Conway's Game of Life is a cellular automaton that is actually a simulator. The evolution is determined only by its initial state and no other input is required.
The board of the Game of Life is an infinite two-dimensional grid of square "cells", that each one has two possibles states, dead or alive. Every cell must interact with its neighbours, the cells that are horizontally, vertically or diagonally adjacent. At each turn, these rules are applied.
- Any live cell with fewer than two live neighbours dies, as if caused by underpopulation.
- Any live cell with two of 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.
- All the births and deaths must happen at the same time. Therefore, cells that are dying can help others to born, but can't previne other cells death by overpopulation; using the same logic, cells that are borning won't preserve or kill living cells at past generation.
If you want to simply play Conway's game of life then do:
make project && ./game inputfile.dat
Otherwise if you want to compile the game with all its documentation do:
make
If you are only interested in the documentation you can generate it with :
make docs
or simply:
doxygen Doxyfile