Skip to content

ebisLab/CS_Game_of_Life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of Life

About

The Game of Life React App is a web representation of John Conway's Game of Life. This is not your typical computer game. It is a 'cellular automaton', and was invented by Cambridge mathematician John Conway. This game became widely known when it was mentioned in an article published by Scientific American in 1970. It consists of a collection of cells which, based on a few mathematical rules, can live, die or multiply. Depending on the initial conditions, the cells form various patterns throughout the course of the game.

Game Rules

  1. Any live cell with fewer than two live neighbors dies, as if by under population.
  2. Any live cell with two or three live neighbors lives on to the next generation.
  3. Any live cell with more than three live neighbors dies, as if by overpopulation.
  4. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.

The Game Controls

  • Start/Pause Button: start or Pause the game simulation
  • Randomize Button: advance to a new generation of cells
  • Clear Button: clear out the grid and set generation back to 0
  • Speed Up/ Down buttons: + to increase speed, - to decrease speed
  • Color button: To see cells in a different format. (Try the black one, it looks like you're watching this under a microscope)

Getting Started

To begin using the App as a client end user, follow the link and click the "Random" button to randomly create "Generation 0". Then press "Start" button to view the change for each generation.

Prerequisites

All of the below dependencies can be installed using: yarn install or npm install

Start development by creating a react app using: yarn start or npm start

Project status

This project was an independent challenge and was completed on May 2020. There may be updates to the application periodically