Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.11 KB

README.md

File metadata and controls

37 lines (22 loc) · 1.11 KB

👾 Game Of Life

Conway's Game of Life is a cellular automaton, played on a 2D grid. Player can set up the initial state of grid. When the algorithm starts, every cell on the grid evolves based on the defined rules.




⚙ Rules

Each cell on the grid can be either Alive or Dead according to the following rules:

1. Survival

  • Any alive cell with 2 or 3 neighbors survives to the next generation.

2. Underpopulation

  • Any alive cell with less than 2 neighbors dies.

3. Overpopulation

  • Any alive cell with more than 3 neighbors dies.

4. Regeneration

  • Any dead cell with exactly 3 neighbors comes to life.

✨ Inspiration