You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gameStates[tableIndex].Players[i].Message1=gameStates[tableIndex].Players[i].Name+" finished with no cards, so scores zero points and is returning one black token"
gameStates[tableIndex].Players[i].Message1=gameStates[tableIndex].Players[i].Name+" finished with no cards, so scores zero points and is returning one white token"
gameStates[tableIndex].Players[i].Message1=gameStates[tableIndex].Players[i].Name+" finished with no cards, so scores zero points"
882
875
gameStates[tableIndex].Players[i].RoundScore=0
883
876
}
884
877
} else {
885
-
gameStates[tableIndex].Players[i].RoundScore=a+ (b*10) // Calculate the round score
886
-
gameStates[tableIndex].Players[i].Message1=fmt.Sprintf("and gains %d white counters and %d black counters, scoring %d points", a, b, gameStates[tableIndex].Players[i].RoundScore)
gameStates[tableIndex].Players[i].Score=gameStates[tableIndex].Players[i].Score+gameStates[tableIndex].Players[i].RoundScore// Update the player's total score
892
-
gameStates[tableIndex].Players[i].Message2=fmt.Sprintf("Total score is now %d points", gameStates[tableIndex].Players[i].Score)
gameStates[tableIndex].Players[i].Score=gameStates[tableIndex].Players[i].WhiteTokens+gameStates[tableIndex].Players[i].BlackTokens// Update the player's total score
889
+
893
890
}
894
891
}
892
+
895
893
gameStates[tableIndex].LastMovePlayed="Please view the results"
896
894
gameStates[tableIndex].RoundOver=true// Set the round over flag to true to prevent multiple score calculations
0 commit comments