A small single-page implementation of Conway's Game of Life in CoffeeScript, written as a learning exercise.
CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Makefile
README.md
conway.coffee
conway.js
index.html
screenshot.png

README.md

Conway's Game of Life

Screenshot

This is a CoffeeScript implementation of Conway's Game of Life using the HTML5 Canvas element for rendering. It obeys the following four rules as laid out by the Wikipedia page:

  • Any live cell with fewer than two live neighbours dies, as if caused by under-population.
  • Any live cell with two or three live neighbours lives on to the next generation.
  • Any live cell with more than three live neighbours dies, as if by overcrowding.
  • Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

Usage

In order to run this yourself, simply open index.html in your browser.

If you want to make changes, modify the conway.coffee file then execute the Makefile. This requires you to have the CoffeeScript Compiler (and Node.js) installed on your machine.