>= instead of == for winner score checking
This commit is contained in:
parent
2203d8927d
commit
0923d8f0f3
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue