Determining multiple winners in a team game

Game development with Board Game Arena Studio
Post Reply
User avatar
JudgeWhyMe
Posts: 36
Joined: 08 August 2012, 17:14

Determining multiple winners in a team game

Post by JudgeWhyMe »

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
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Determining multiple winners in a team game

Post by Victoria_La »

Is it this?
Note: In some team games like Tichu, Spades, and Belote, players do not gain or lose ELO by teammates. (Hover over the ELO changes to find 'Teammate: -100%')

To activate this modifierfor your game, please contact a BGA admin (hardcoded_team_games must be enabled manually).

Ref: https://en.doc.boardgamearena.com/Game_ ... os.inc.php
User avatar
RicardoRix
Posts: 2548
Joined: 29 April 2012, 23:43

Re: Determining multiple winners in a team game

Post by RicardoRix »

IMO, player scores and end game rankings should be properly separated.
Why are the player scores suddenly meant to change from one meaning to another at the end of the game?

The best solution would be an optional field in player db and maybe something in gameinfos. This would allow much better customisation of the results page.
User avatar
JudgeWhyMe
Posts: 36
Joined: 08 August 2012, 17:14

Re: Determining multiple winners in a team game

Post by JudgeWhyMe »

Thanks for the answers
To activate this modifierfor your game, please contact a BGA admin (hardcoded_team_games must be enabled manually).
I will try that, thanks
The best solution would be an optional field in player db and maybe something in gameinfos. This would allow much better customisation of the results page.
Something like adding a team_ranking field in player table, that would indicate which players are on the winning team and which are team on the loosing team?
But then how will BGA framework know how to use this field? by modifying gameinfos? What modifications should be made?

Thanks
Post Reply

Return to “Developers”