My semester project topic is simulation of Conway's Game of Life. There is grid 20x20 with cells. Cells can be in one of two states dead or alive (0, 1 respectively). Every cell has 8 logical neighbours except border cells.
There are four rules:
- Any alive cell with fewer than two alive neighbours dies, as if by underpopulation.
- Any alive cell with two or three alive neighbours lives on to the next generation.
- Any alive cell with more than three alive neighbours dies, as if by overpopulation.
- Any dead cell with exactly three alive neighbours becomes a alive cell, as if by reproduction.
- Copy Repository
git clone https://github.com/fiedosiukr/semester-project
- Open project in Visual Studio and compile
User can insert his own data changing file data.txt
. In file there is 20x20 grid, 0 and 1 corespond dead and alive cell respectively. User can also delete file, if program doesn't find file data.txt
cells will be randomly generated.