state: Fixed majorities bug
This commit is contained in:
parent
da04d53092
commit
70f3b3c707
@ -487,7 +487,7 @@ public class State {
|
||||
}
|
||||
if (playerPieces[i] == playerPieces[playerID]) ties++;
|
||||
}
|
||||
if (ishighest) {
|
||||
if (ishighest && playerPieces[playerID] > 0) {
|
||||
if (ties > 0){
|
||||
score += island.getBonus()/(ties + 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user