Skip to content

Commit c43bdef

Browse files
committed
Fixed scoring calculation to properly account
for black tokens being worth 10 points each.
1 parent 08b9264 commit c43bdef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ func EndofRoundScore(tableIndex int) {
885885
gameStates[tableIndex].Players[i].WhiteTokens = gameStates[tableIndex].Players[i].WhiteTokens % 10
886886
}
887887

888-
gameStates[tableIndex].Players[i].Score = gameStates[tableIndex].Players[i].WhiteTokens + gameStates[tableIndex].Players[i].BlackTokens // Update the player's total score
888+
gameStates[tableIndex].Players[i].Score = gameStates[tableIndex].Players[i].WhiteTokens + (gameStates[tableIndex].Players[i].BlackTokens * 10) // Update the player's total score
889889

890890
}
891891
}

0 commit comments

Comments
 (0)