Skip to content

Instantly share code, notes, and snippets.

@thenormalsquid
Created June 7, 2015 22:18
Show Gist options
  • Save thenormalsquid/6a4d033e27804307ccb7 to your computer and use it in GitHub Desktop.
Save thenormalsquid/6a4d033e27804307ccb7 to your computer and use it in GitHub Desktop.
test
function playTheGame(event) {
var rows = world.stage.canvas.width,
cols = world.stage.canvas.height;
for(int r = 0; r < rows; r += cellHeight) {
for(int c = 0; c < cols; c += cellWidth) {
//form neighborhood here,
//count num cells
//return center cell, if it doesn't exist, add one
//pass cell through rules
console.log('fag')
}
}
world.stage.update(event);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment