1.1 --- a/webidor/src/main/java/cz/xelfi/quoridor/webidor/GameStatus.java Sat Sep 19 14:38:29 2009 +0200
1.2 +++ b/webidor/src/main/java/cz/xelfi/quoridor/webidor/GameStatus.java Tue Dec 08 15:34:50 2009 +0100
1.3 @@ -52,4 +52,10 @@
1.4 return board.getCurrentPlayer() == board.getPlayers().get(0) ? GameStatus.whiteMove : GameStatus.blackMove;
1.5 }
1.6 }
1.7 +
1.8 + /** @return true if the game is in progress
1.9 + */
1.10 + public boolean isInProgress() {
1.11 + return this == whiteMove || this == blackMove;
1.12 + }
1.13 }