Skip to content

curtisyungen/conway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

Conway's Game of Life

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.


Technologies

  1. Node.js
  2. Express.js
  3. ReactJS

NPM Dependencies

  1. express
  2. react-dom
  3. react-responsive-modal
  4. react-router

Download Instructions

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/

  1. Visit https://github.com/curtisyungen/conway
  2. Click on the green button labeled Clone or download
  3. Select Download ZIP
  4. Open the ZIP file and extract its contents to the desired location on your computer
  5. Open Visual Studio Code or the editor of your choice
  6. Open a new terminal in your code editor
  7. Install all dependencies by running the command "npm install"
  8. Start the program by typing the command "npm start" in your terminal
  9. The program will open locally in your browser

Screenshots



About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published