Skip to content

Commit

Permalink
Added check to isAWin to only count as a win if the game is active.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Zwahr committed Aug 26, 2012
1 parent d00584d commit db5bdb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SlideGame/SlideGame.m
Expand Up @@ -205,7 +205,7 @@ - (void) moveTile: (NSUInteger)x : (NSUInteger) y

- (bool) isAWin
{
return [gameArray isEqualToArray:correctArray];
return self.active && [gameArray isEqualToArray:correctArray];
}

- (void) printBoardDebug
Expand Down

0 comments on commit db5bdb4

Please sign in to comment.