Skip to content

Implement red vs. blue pairing #279

@ianpaschal

Description

@ianpaschal

User Story

As a TO, I want to be able to pair players (in solo tournaments) in "red vs. blue" match-ups (Axis vs. Allies, Imperium vs. Xenos, etc.).

Functional Requirements

  • New options are available on the <TournamentForm/>:
    • A new pairing method: adjacent_alignment ("Red vs. Blue")
    • A checkbox for: requireDeclareAlignment ("Require players to declare alignment upon registering.")
    • An error is shown if pairingMethod is adjacent_alignment but competitorSize is greater than 1.
  • Alignments are shown with a red or blue indicator on TournamentCompetitors.
  • The new pairing option is used on the <TournamentPairingsPage/>.

Implementation Details

  • TournamentRegistrations will now include a declaredAlignment field.
  • TournamentCompetitors will have a calculated field for alignments which is an array, computed based on declared alignments and uploaded lists (when added).
  • The pairing algorithm will consider a TournamentCompetitor whose alignments contains a value besides the subject TournamentCompetitor's alignments[0] value as a valid match-up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature with brand-new functionality.

    Projects

    Status

    To-Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions