Skip to content

Conway's Game of Life, for JavaScript in a Web browser.

Notifications You must be signed in to change notification settings

chrisimmel/life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

life

The classic Conway game of Life.

This is pure HTML + JavaScript. There are no moving parts or state on the server side. The only external dependency is on the D3 library for UI rendering. All you have to do to run it is put all the files together in a directory, then open index.html in a browser.

Features:

  • Board sizes from 10x10 to 100x100.

  • Varying initial density of the board layout.

  • Button to start/stop the simulation.

  • Button to generate a new random starting layout.

Try it out at: http://luminifera.net/life/

Have fun, and let me know what you think!

Chris Immel


File Contents

index.html The single page of this single-page application.

lifeController.js The UI controller through which the user runs the show.

lifeView.js The UI view, in which all rendering to the DOM is done.

life.css Some simple styling.

lifeModel.js The model of the life simulation.

About

Conway's Game of Life, for JavaScript in a Web browser.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published