team_maker

package
v0.0.0-...-4a96510 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRandomTeamMaker

func NewRandomTeamMaker(discordIDs []string) *randomTeamMaker

Types

type BaseTeamMaker

type BaseTeamMaker struct {
	DiscordIds []string
	Scorer
}

func NewTeamMaker

func NewTeamMaker(discordIDs []string, s Scorer) *BaseTeamMaker

func (BaseTeamMaker) MakeTeam

func (tm BaseTeamMaker) MakeTeam() ([][]string, error)

type Scorer

type Scorer interface {
	GetScore(id string) (float64, error)
}

type TeamMaker

type TeamMaker interface {
	MakeTeam() [][]string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL