Skip to content
Browse files

rematch bugfix

  • Loading branch information...
1 parent 64c3f7d commit 060974efccdc598417850665309fe5ed6be238fe @c00kiemon5ter committed Nov 30, 2010
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/logic/Controller.java
  2. +1 −1 src/othello/CliGame.java
View
1 src/logic/Controller.java
@@ -107,6 +107,7 @@ public void init() {
board.init();
player = Player.BLACK;
depth = DEFAULT_DEPTH;
+ canMove = CANMOVE;
}
public void setDifficulty(int level) {
View
2 src/othello/CliGame.java
@@ -102,8 +102,8 @@ private void declareWinnarz() {
public void rematch() {
System.out.print("\nReady for another game? [y/]");
+ controller.init();
if (System.console().readLine().equalsIgnoreCase("y")) {
- controller.init();
startGame();
}
}

0 comments on commit 060974e

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