Skip to content

rd4704/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Game of Life in Javascript

Game of life simulator in Javascript

##Game Rules

  1. A dead cell with exactly three live neighbors becomes a live cell (birth).
  2. A live cell with two or three live neighbors stays alive (survival).
  3. In all other cases, a cell dies or remains dead (overcrowding or loneliness).

##Installation

  1. Download the entire source code
  2. Run game-of-life.html on your favourite browser
  3. To run tests (using QUnitjs) open test.html in your browser

##Game Play

  1. When page loads it has a spaceship glider loaded into the world
  2. Click on any cell if you want to add more lives
  3. Clicking on an alive cell will toggle it off
  4. Click Go! button to step 1 into the simulation
  5. Click on Go Crazy! button to simulate endlessly
  6. Click reset to clear the world and reset the game.

About

Game of life simulator in Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published