The Game of Life is a cellular automaton devised by the British mathematician John Horton Conway in 1970. It is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves.
Each generation, a cell C is alive 1 or dead 0.
In the next generation each cell C is alive or dead
depending on a count of its neighbours N
| Now | Neighbors | Next |
|---|---|---|
| 1 | 0,1 | 0 # Lonely |
| 1 | 4,5,6,7,8 | 0 # Overcrowded |
| 1 | 2,3 | 1 # Lives |
| 1 | 3 | 1 # It takes three to give birth! |
| 1 | 0,1,2,4,5,6,7,8 | 0 # Barren |
Example of one Instance of Game of Life:
-
Visit the link https://www.onlinegdb.com/
-
Select the programming language on the top right corner(Ruby,Pearl,Go).
-
Copy the respective programming languge code for the game of life present in the code folder.
-
Click on run at the top and check the output screen as the game of life is displayed.
Visit the link https://docs.google.com/spreadsheets/d/1cYCGiiqwOXcH7xveMVOphOmT0MoK0BAt6QrtL8388rQ/edit#gid=0 and:
1.Pick one key from the table in the spreadsheet. Click the checkbox after saving key. (Only pick the key for which the checkbox is clear)
2.Once the debugging is done come back to this sheet and fill the data in the row assigned for your key
