Documentation ¶
Index ¶
Constants ¶
View Source
const ( Asc = "asc" Desc = "desc" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Outcome ¶
type Outcome int
Outcome refers to the result of a match(win|draw|loss) The value of an outcome is the point(s) earned.
type Table ¶
type Table struct {
Rows []TableRow
}
Table represents the tournament table ranking teams by points earned
func BuildTable ¶
func Tally ¶
Tally builds the tournament table from match results and sorts the table based on points earned by teams in descending order. It is a semantic helper. If you want more control, you can build the table with `tournament.BuildTable` and sort the resulting table with Table.Sort in any order(Desc|Asc) that you choose.
Click to show internal directories.
Click to hide internal directories.