This is a multiplayer Web app version of Conway’s Game of Life which demonstrates cellular automaton. It is modeled as a grid with 4 simple rules:
- Any live cell with fewer than two live neighbours dies, as if caused by under-population.
- Any live cell with two or three live neighbours lives on to the next generation.
- Any live cell with more than three live neighbours dies, as if by overcrowding.
- Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
This app used Socket.io for realtime communication and ReactJS for its speed (Virtual DOM) and modular design. A module is shared between the front and back end for logic in common.
- Demo Site on Heroku
- Run the following and view the site in http://localhost:9000/
git clone https://github.com/thomasmktong/game-of-life.git
cd game-of-life
npm install
node server/app.js