state: Fixed majorities bug

This commit is contained in:
2023-04-24 17:57:08 +10:00
parent da04d53092
commit 70f3b3c707

View File

@@ -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);
}