Documentation
¶
Overview ¶
Package domain defines the core domain models for the bracket creator
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignSeeds ¶
func AssignSeeds(players []Player, assignments []SeedAssignment) error
AssignSeeds applies valid seed assignments to a list of players It swaps seeds if a collision occurs. Returns error if a seeded participant is not found.
func ValidateAssignments ¶
func ValidateAssignments(assignments []SeedAssignment) error
ValidateAssignments checks a list for duplicate seed ranks and valid properties.
Types ¶
type MatchWinner ¶
MatchWinner represents a player who has won a match
type Player ¶
type Player struct {
ID string
Name string
DisplayName string
Dojo string
PoolPosition int64
Seed int
}
Player represents a tournament participant
type SeedAssignment ¶
SeedAssignment represents the mapping of a previous winner to a seed position.
func (*SeedAssignment) Validate ¶
func (s *SeedAssignment) Validate() error
Validate checks if the seed assignment is valid.
type Tournament ¶
Tournament represents the complete tournament structure
Click to show internal directories.
Click to hide internal directories.