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