Skip to content

radishmouse/game-of-life-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A JavaScript implementation of Conway's Game of Life.

  • represents the board as 2D array of cells
  • creates a second representation of board as 2D array of number of live neighbors
  • uses map, filter, and reduce for calculation/iteration

index.html displays a canvas version of the program, with play/pause and reload buttons. (Play/pause can be triggered with the Space or Enter keys. Reloading can be triggered with the r key.)

Also, can run on the terminal or in the browser console.

About

Conway's game of life, in JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published