state: Fixed majorities bug

This commit is contained in:
Nathan Woodburn 2023-04-24 17:57:08 +10:00
parent da04d53092
commit 70f3b3c707
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

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