Determining multiple winners in a team game
Posted: 15 June 2025, 15:43
Hello
I am implementing a team game (2 vs 2).
Each player has victory points, the team's victory points are the lowest victory points between the teammates.
I tried and look at Big Monster's code, and as far as I understood, the way to do that is:
- to set both teammates's player_score to the lowest score in players table in the database
- to set both teammates's player_score_aux to 1 in the winning team, and both teammates's player_score_aux to 0 for the losing team
However, in the end, I have only one winner (one of the winning team), even though both player in the winning team have the same player_score and player_score_aux in the DB
Am I missing something?
Thanks
I am implementing a team game (2 vs 2).
Each player has victory points, the team's victory points are the lowest victory points between the teammates.
I tried and look at Big Monster's code, and as far as I understood, the way to do that is:
- to set both teammates's player_score to the lowest score in players table in the database
- to set both teammates's player_score_aux to 1 in the winning team, and both teammates's player_score_aux to 0 for the losing team
However, in the end, I have only one winner (one of the winning team), even though both player in the winning team have the same player_score and player_score_aux in the DB
Am I missing something?
Thanks