Skip to content

Instantly share code, notes, and snippets.

View rdecaire's full-sized avatar

Robert DeCaire rdecaire

  • Inflection Group
  • Toronto
View GitHub Profile
@rdecaire
rdecaire / gist:4524998
Created January 13, 2013 16:45
Updated game of life, using one fewer loop than the last one.
/* Game of Life */
var running = false;
var numrows = 40;
var numcols = 60;
var initialized = false;
var board = new Array();
var timer;
var mousepress = false;
var paintcolour = "black";
/* Game of Life */
var running = false;
var numrows = 30;
var numcols = 50;
var initialized = false;
var board = new Array();
var timer;
var mousepress = false;
var paintcolour = "black";