Documentation
¶
Index ¶
- func AddDataToSheet(f *excelize.File, pools []Pool)
- func AddPoolsToSheet(f *excelize.File, pools []Pool) error
- func AddPoolsToTree(f *excelize.File, sheetName string, pools []Pool)
- func CalculateDepth(node *Node) int
- func CalculateDepthForLeafs(leafs int) int
- func CalculateNodesForLeafs(leafs int) int
- func CreateNamesToPrint(f *excelize.File, pools []Pool)
- func CreatePoolMatches(pools []Pool)
- func CreatePoolRoundRobinMatches(pools []Pool)
- func CreateTreeBracket(f *excelize.File, sheet string, col int, startRow int, size int, ...) string
- func FillInMatches(f *excelize.File, matches []string) map[string]int
- func FindMaxDepth(node *Node) int
- func GenerateFinals(pools []Pool) []string
- func GetBorderStyleBottomLeft(f *excelize.File) int
- func GetBorderStyleLeft(f *excelize.File) int
- func InOrderTraversal(root *Node) []string
- func MatchHeader(f *excelize.File, sheetName string, startColName string, poolRow int, ...)
- func OrderStringsAlphabetically(strings []string) []string
- func PrintEliminationMatches(f *excelize.File, poolMatchWinners map[string]MatchWinner, ...)
- func PrintLeafNodes(node *Node, f *excelize.File, sheetName string, startCol int, startRow int, ...)
- func PrintPoolMatches(f *excelize.File, pools []Pool) map[string]MatchWinner
- func RemoveDuplicates(input []string) []string
- func Walk(t *Node, ch chan int)
- type EliminationMatch
- type Match
- type MatchWinner
- type Node
- type Player
- type Pool
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDataToSheet ¶
func CalculateDepth ¶
func CalculateDepthForLeafs ¶
Function to calculate the depth of a balanced tree for a given number of leaf nodes
func CalculateNodesForLeafs ¶
func CreateNamesToPrint ¶
func CreatePoolMatches ¶
func CreatePoolMatches(pools []Pool)
func CreatePoolRoundRobinMatches ¶
func CreatePoolRoundRobinMatches(pools []Pool)
func CreateTreeBracket ¶
func FindMaxDepth ¶
func GenerateFinals ¶
func GetBorderStyleLeft ¶
func InOrderTraversal ¶
func MatchHeader ¶
func PrintEliminationMatches ¶
func PrintEliminationMatches(f *excelize.File, poolMatchWinners map[string]MatchWinner, matchMapping map[string]int, eliminationMatchRounds [][]EliminationMatch)
func PrintLeafNodes ¶
func PrintPoolMatches ¶
func PrintPoolMatches(f *excelize.File, pools []Pool) map[string]MatchWinner
CreatePoolMatches writes the given pool matches to an Excel file.
Parameters: - f: the excelize file to write the pool matches to. - poolMatches: the pool matches to write.
func RemoveDuplicates ¶
Types ¶
type EliminationMatch ¶
type EliminationMatch struct {
// Match Number
Number int
// Pool Number winner or Cell value
Left string
// Pool Number winner or Cell value
Right string
}
func TraverseRounds ¶
type MatchWinner ¶
type MatchWinner struct {
// contains filtered or unexported fields
}
type Node ¶
type Node struct {
LeafNode bool
// Pool Number or Cell value
LeafVal string
Val int
Left *Node
Right *Node
}
func CreateBalancedTree ¶
type Player ¶
type Player struct {
Name string
Dojo string
PoolPosition int
// contains filtered or unexported fields
}
func CreatePlayers ¶
Click to show internal directories.
Click to hide internal directories.