>= instead of == for winner score checking

This commit is contained in:
Andy Janata 2012-03-17 16:21:23 -07:00
parent 2203d8927d
commit 0923d8f0f3
1 changed files with 2 additions and 2 deletions

View File

@ -458,7 +458,7 @@ public class Game {
playerStatus = GamePlayerStatus.JUDGE; playerStatus = GamePlayerStatus.JUDGE;
} }
// TODO win-by-x // TODO win-by-x
else if (player.getScore() == scoreGoal) { else if (player.getScore() >= scoreGoal) {
playerStatus = GamePlayerStatus.WINNER; playerStatus = GamePlayerStatus.WINNER;
} else { } else {
playerStatus = GamePlayerStatus.IDLE; playerStatus = GamePlayerStatus.IDLE;
@ -1191,7 +1191,7 @@ public class Game {
killRoundTimer(); killRoundTimer();
final TimerTask task; final TimerTask task;
// TODO win-by-x option // TODO win-by-x option
if (cardPlayer.getScore() == scoreGoal) { if (cardPlayer.getScore() >= scoreGoal) {
task = new TimerTask() { task = new TimerTask() {
@Override @Override
public void run() { public void run() {