Instructions to run the program

files description

Board.java - Class Board is used to represent the 2D grid of cells
Life.java - Class Life includes the logic which is given in the assignment

Code is written as a simple java program use cmd / terminal to run and execute it

⦿ javac Life.java
⦿ java Life
⦿ enter no of generations for the program to run (preferably 100)
⦿ Press CTRL+Z to end the program

⦿ In the Board - dead cell is represented by - "."
alive cell is represented by - "0"

⦿ At each new generation the rules are applied to the entire Board
⦿ and the new state of cells is calculated.

Output - after running the program

alt text

Output - after all generations are over

alt text