Skip to content

aruvham/javascript-game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javascript-game-of-life

javascript-game-of-life is an implementation of Conway's Game of Life, created using p5.js to render all the graphics.

javascript-game-of-life overall screenshot

javascript-game-of-life gameplay screenshot

javascript-game-of-life gameplay screenshot

How To Use

Click on any part of the grid to "activate" that cell.

Controls:

javascript-game-of-life controls screenshot

  • Run: Plays the simulation
  • Step: Move the simulation one generation forward [works while paused]
  • Clear: Removes all "cells" from the grid, also removes the trail [works while paused]
  • Save: Generates an array-like string representing the current state of the grid, the string will appear on the text area [works while paused]
  • Load: Attempts to read an array-like string from the text area and loads it into the grid [works while paused]
  • Speed: Changes the speed of the simulation
  • Grid: Show/Hide the grid lines
  • Trail: Show/Hide the trail
  • Colors: Changes the color of part of the simulation, from left to right:
    • Background
    • Grid
    • Cells
    • Trail
  • Random: Populates the grid with a random pattern [works while paused]
  • Pattern Select: Loads from a list of classic patterns [works while paused]

About

An implementation of Conway's Game of Life built with JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published