Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 700 Bytes

life.md

File metadata and controls

16 lines (11 loc) · 700 Bytes

Game of Life

Conway's Game of Life

Implementation of Conway's Game of Life according to the rules: The distribution of living cells at the beginning of the game is called the first generation. Each subsequent generation is calculated based on the previous one according to these rules:

  • in an empty (dead) cell that is adjacent to three living cells, life is born;
  • if a living cell has two or three living neighbors, then that cell continues to live; otherwise ( if there are fewer than two or more than three living neighbors), the cell dies (from "loneliness" or "overpopulation").

wiki

Game of Life