Skip to content

Instantly share code, notes, and snippets.

Avatar

Tobias Axelsson TobiasAxelsson

  • Sweden
View GitHub Profile
@TobiasAxelsson
TobiasAxelsson / gameOfLife.js
Last active Aug 29, 2015
Game of Life in JS
View gameOfLife.js
/*global Element, performance, requestAnimationFrame, console*/
(function GameOfLife() {
"use strict";
var alternateModel,
delta,
generationCount,
generationCounterDisplay,
goButton,
grid,
@TobiasAxelsson
TobiasAxelsson / nInARow
Last active Aug 29, 2015
An n-in-a-row game in JS
View nInARow
/*global console, prompt */
var gameBoard = [],
coords,
gameSettings,
player = 0,
winner,
i,
j;
gameSettings = {};
gameSettings.winCondition = 3;
You can’t perform that action at this time.