Skip to content

Instantly share code, notes, and snippets.

View AlexandruSimandi's full-sized avatar

Alexandru Simandi AlexandruSimandi

View GitHub Profile
@AlexandruSimandi
AlexandruSimandi / gameOfLife
Created April 6, 2015 15:25
game of life javascript with canvas
var UIModule = (function (){
//function for listener, starts/stops runnig game
function enterPressed(e){
if(e.keyCode == 13){
if(gameModule.isRunning() == false){
document.getElementById('status').innerHTML = "Game is running ";
gameModule.run();
}else {
document.getElementById('status').innerHTML = "Game is paused ";