Hard Prerequisites |
|
Game Time
In this project we are going to create a GAME!!! fun right, its called Conway Game of life
How This game works
Initially, there is a grid (yours should be 10 * 10) with some cells which may be alive or dead. Our task is to generate the next generation of cells based on the following rules:
You will need to show in your console the initial state (input) and next generation
(+) - Dead Cell
(#) - Alive Cell
Input
/ + + # + + +
/ + + # # # +
/ + + + + + +
Next generation
/ + + # + + +
/ + + # # + +
/ + + + # + +
You should have a test for all the rules above but you can also add more test if you want.