Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added check to isAWin to only count as a win if the game is active.

  • Loading branch information...
commit db5bdb4010998212850a2ce1a8a37d417e161f8f 1 parent d00584d
Brian Zwahr authored August 25, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  SlideGame/SlideGame.m
2  SlideGame/SlideGame.m
@@ -205,7 +205,7 @@ - (void) moveTile: (NSUInteger)x : (NSUInteger) y
205 205
 
206 206
 - (bool) isAWin
207 207
 {
208  
-    return [gameArray isEqualToArray:correctArray];
  208
+    return self.active && [gameArray isEqualToArray:correctArray];
209 209
 }
210 210
 
211 211
 - (void) printBoardDebug

0 notes on commit db5bdb4

Please sign in to comment.
Something went wrong with that request. Please try again.