by Curtis Yungen
August 2019
Conway's Game of Life is a simulation based on an initial state and four simple rules governing how this state evolves:
- Any live cell with fewer than two live neighbours dies, as if by underpopulation.
- 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 overpopulation.
- Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
Read more here: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
In this project, a user can draw a particular pattern on a 25 x 25 grid and click Start to commence the simulation. The pattern then mutates based on the four aforementioned rules, forming new patterns and continuing until the simulation reaches a static or oscillating state.
Check out the project here: https://conway-cjy.herokuapp.com.
- Node.js
- Express.js
- ReactJS
- express
- react-dom
- react-responsive-modal
- react-router
Ensure that you have installed a Code Editor such as Visual Studio Code as well as Node.js. Installation instructions for Node.js can be found here: https://nodejs.org/en/download/
- Visit https://github.com/curtisyungen/conway
- Click on the green button labeled Clone or download
- Select Download ZIP
- Open the ZIP file and extract its contents to the desired location on your computer
- Open Visual Studio Code or the editor of your choice
- Open a new terminal in your code editor
- Install all dependencies by running the command "npm install"
- Start the program by typing the command "npm start" in your terminal
- The program will open locally in your browser