From 440ac2f59b28f279f6143d91ab1b585b450aef9c Mon Sep 17 00:00:00 2001 From: Sandeep Nambiar Date: Mon, 19 May 2014 22:46:45 +0530 Subject: [PATCH] Fixed bug Bug which led to win screen when only top three rows were completed instead of the whole maze --- Game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Game.js b/Game.js index 7dd99b3..e8def28 100644 --- a/Game.js +++ b/Game.js @@ -172,7 +172,7 @@ BasicGame.Game.prototype = { var flag = true; for(var i=0;i<4;i++){ for(var j=0;j<4;j++){ - if(i!=3&&j!=3){ + if((i*4)+j+1!=16){ if(this.matrix[i][j]!=(i*4)+j+1){ flag = false; return;