Labels: backend, enhancement, competitions
Problem
Competitions have participants but no automated bracket/seeding, so organizers must arrange matchups manually.
Requirements
- Add an endpoint to generate a bracket from a competition's participants.
- Support single-elimination seeding based on a chosen metric.
- Persist bracket rounds and matchups.
- Handle byes for non-power-of-two participant counts.
Acceptance Criteria
- A valid bracket is generated for any participant count.
- Byes are assigned deterministically for odd counts.
- Bracket structure is persisted and retrievable.
- Tests cover power-of-two and bye cases.
Files
backend/src/competitions/competitions.service.ts, backend/src/competitions/competitions.controller.ts, backend/src/competitions/entities, backend/src/competitions/dto
Labels: backend, enhancement, competitions
Problem
Competitions have participants but no automated bracket/seeding, so organizers must arrange matchups manually.
Requirements
Acceptance Criteria
Files
backend/src/competitions/competitions.service.ts,backend/src/competitions/competitions.controller.ts,backend/src/competitions/entities,backend/src/competitions/dto