Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
Bug which led to win screen when only top three rows were completed
instead of the whole maze
  • Loading branch information
RotMGNambiar committed May 19, 2014
1 parent 9d121c4 commit 440ac2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

2 comments on commit 440ac2f

@DCdesign12
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, this game is Fantastic! I'm blowed away to see that the puzzle can solve itself, Genius! I was wondering if this game would work on mobile devices? Currently it doesn't but was wondering if this can be easily adapted for mobile. I'm a designer that can skin games but don't know how to code. What would be my best change to make this game mobile friendly? What would you recommend?

@gamedolphin
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've put this up as a mobile game already :) Sliding Puzzle for Android. I used a webview provided by Ludei to build this.

Please sign in to comment.