This Repository serves as an implementation for the Cell Game problem.
-
Clone the Repository to your Local Machine.
-
Navigate to the cloned folder through the Terminal.
-
Make Sure you have Node.js installed.
-
Run the Following Command Through the Terminal: bash npm install
-
Once its finished simply execute the following line in the Terminal:
bash npm start
- Each Red block is a Live Cell and the White Blocks are Dead cells.
- Initially through a random seed, the first generation of cells will be created.
- You can keep clicking on the "Progress" button to progress the generation further.
- You can also click anywhere on the grid to add new cells.
- Adding new cells will then move the generation forward, the cells will evolve on the basis of following rules:
- Any live cell with fewer than two live neighbors dies, as if by loneliness.
- Any live cell with more than three live neighbors dies, as if by overcrowding.
- Any live cell with two or three live neighbors lives, unchanged, to the next generation.
- Any dead cell with exactly three live neighbors comes to life.
- There is also an index associated with each cell, you can display them by clicking on "Display Name".
- Typing any index in the Search Bar will highlight that cell in the grid.