UEWBot / dipvis

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

Other awards #60

Closed UEWBot closed 1 year ago

UEWBot commented 5 years ago

Many tournaments have additional awards. We should have support for these.

UEWBot commented 5 years ago

Seems that we’d want a new Award class. The question is whether it should be per-tournament, which means we could list awards that are being played for but means creating them for each tournament, or global. Either way, we’d also want a class to associate a TournamentPlayer with an Award. We already have a PlayerAward class.

UEWBot commented 5 years ago

Changes would be needed in Tournament.news() and the views that create create files for upload to the WDD. Possibly also the “final standings” page.

UEWBot commented 3 years ago

Could have an Award class with just the name and description, plus a TournamentAward class associating an Award with a Tournament. When creating a Tournament, ideally you'd just have a list of checkboxes for "awards" and could pick which ones you want to use.

UEWBot commented 1 year ago

We just need an Award class and new ManyToManyFields in Tournament and TournamentPlayer.

The difficulty is what do you then do with "best country" awards, which are not (currently) objects of that new class? Or for that matter position "awards". It would definitely be useful to be able to loop through all the awards that a given player won at a tournament. So maybe they need to become Awards, too? Some tournaments do choose to award things like "Best Play of England" or "Outstanding Play of England" rather than "Best England", so doing so would facilitate that, and it would also support tournaments that didn't want to give best country awards.

So maybe the Award class has an optional GreatPower attribute that says that it is the "Best Country" award for that power. I think position "awards" can still be separate. Every player has a position.

UEWBot commented 1 year ago

Then the system can auto-create the appropriate "best country" awards when the last game ends and the TD will have the ability to override them if appropriate. That's also better for the case of a tie, when the TD presumably picks a recipient (they would also be able to award multiple "Best England" awards with this system).

UEWBot commented 1 year ago

Commit 1f8300f0f46dd72ad8354ac46d2d21c6f825f7d0 adds support for awards.