Skip to content

sherzader/GameOfLife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Conway's Game of Life Game Image

##To run simulation:

  1. Download .zip file
  2. Navigate to root of game_of_life folder in your shell terminal
  3. Compile the java program $javac GameOfLife.java
  4. Run the program $java GameOfLife

###The simulation is a two-dimensional grid of cells. Each cell can either be alive or dead, which update on each tick.

###Every second, the grid is updated based on the following Rules:

  1. Any live cell with fewer than two live neighbors dies, as if caused 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 overcrowding.
  4. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.

###Fun To-do's:

  • let user click the mouse to set that cell to the "alive" state
  • let user press spacebar to pause/unpause the simulation
  • let user press -/+ to slow down or speed up the simulation

About

Conway's cellular automata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages