UEWBot / dipvis

Django-based visualiser for tournaments for the boardgame Diplomacy
GNU General Public License v3.0
7 stars 4 forks source link

Add support for handicaps #303

Open UEWBot opened 1 month ago

UEWBot commented 1 month ago

As used in the Hung Parliament Handicap.

Players can be secretly allocated into categories by the GM. After all rounds are complete, the members of each category get awarded the additional bonus points for their category.

So we'd need a new category class (I don't really like the name), with a bonus_points attribute. A Tournament can be associated with a number of categories, and TournamentPlayers can also be associated with a single category (need to validate that the category is associated with the Tournament).

New TournamentScoringSystem would behave the same until all Rounds are finished, at which point it would add in the category bonus points.

Scores view would need a new column for category bonus points, possible displayed with a '?' until the final Round finishes.

New view to set the category for each TournamentPlayer.

Hmmm. The actual categories don't seem to add much - could just specify handicap bonus points for each TournamentPlayer, and it would be up to the TD to pick what values they choose to allocate. Then we could probably use the existing player registration form and just add a new column for Handicap if enabled for the Tournament. Then maybe we don't need a separate scoring system, but just a handicap flag on the Tournament that gets passed in when scoring.