Skip to content

Commit

Permalink
don't shuffle automatically on win
Browse files Browse the repository at this point in the history
  • Loading branch information
crdx committed Nov 7, 2012
1 parent f6d1308 commit 6aaa092
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions game.js
Expand Up @@ -330,11 +330,10 @@ Puzzle.prototype.checkWin = function()
var tile = document.getElementById('tile' + this.settings.gridWidth * this.settings.gridHeight);

tile.style.backgroundImage = "url(" + this.settings.imageUrl + ")";
alert("You win! Let's see you do that again.");
alert("You win!");

// hide it again and shuffle
tile.style.backgroundImage = "";
this.startShuffle();
}

Puzzle.prototype.getTileIdByXY = function(x, y)
Expand Down

0 comments on commit 6aaa092

Please sign in to comment.