Skip to content

Feature/season rules#1

Open
Uular wants to merge 6 commits intodevelopfrom
feature/season-rules
Open

Feature/season rules#1
Uular wants to merge 6 commits intodevelopfrom
feature/season-rules

Conversation

@Uular
Copy link
Owner

@Uular Uular commented May 13, 2021

Adds GameRules and SeasonRules models, which can be used to change behaviour on a game- or season basis.

GameRules features:

  • Name (for identification)
  • Min&Max player count
  • Min&Max rounds that can be played

SeasonRules features:

  • Name for identification
  • Scoring algorithm (previously in Season object)
  • Elo decay on/off (applied at beginning of season)
  • Rank criteria: Selectable statistic & min value for said statistic required to apply rank to a player during a season.

Every Game needs a GameRules and every Season needs a SeasonRules. For this reason, a data migration is added, which creates a default GameRules with classic Frisbeer rules, and applies it to all previous games. The SeasonRules model migration migrates earlier Season scoring algorithms to new SeasonRules objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant