Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllTeams = []Team{ Team{"Houston", "Longhorns", "HOU", league, PlayerGroup{[]Player{}}}, Team{"Las Vegas", "Rattlers", "LVR", league, PlayerGroup{[]Player{}}}, Team{"Seattle", "Needlers", "SEA", league, PlayerGroup{[]Player{}}}, Team{"Washington", "Washers", "WAS", league, PlayerGroup{[]Player{}}}, }
TODO: initialize this list in the driver function TODO: change to local list to support multiple leagues global list of teams in the league
Functions ¶
Types ¶
type FreeAgency ¶
type FreeAgency struct {
PlayerGroup
}
type Player ¶
TODO: add number and validation
func (Player) UpdateAttrs ¶
type PlayerGroup ¶
type PlayerGroup struct {
// contains filtered or unexported fields
}
func (PlayerGroup) AddPlayer ¶
func (pg PlayerGroup) AddPlayer(player Player)
func (PlayerGroup) DropPlayer ¶
func (pg PlayerGroup) DropPlayer(player Player) error
TODO: Find and drop player from group. If not found, return an error
func (PlayerGroup) MovePlayer ¶
func (pg PlayerGroup) MovePlayer(player Player, recGroup PlayerGroup) error
Click to show internal directories.
Click to hide internal directories.