Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mhubenthal/gol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 

Repository files navigation

Conway's Game of Life implemented in JavaScript using the <canvas> tag.

Include <canvas id="gol_canvas"></canvas> on your page. Include the gol.js script, the gol object will be attached to the global context. Call gol.setupLife() first to load the blank board.

Call gol.playLife(); to get things going. gol.pauseLife(); and ```gol.clearLife();


The ```gol``` canvas allows the user to select cells to make alive or dead with the cursor.

The board can also be customized on the fly with ```gol.setGridColor();```, ```gol.setCellColor();``` and ```gol.setLifeSpeed();```.

(Note: Extremely large gol boards have not been tested for performance. The default size is 60 cells wide by 30 cells tall.) 

About

Conway's Game of Life in good old JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published