Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tally ¶ added in v0.3.0
type Tally struct { // Item is a map of votes ordered by the person being voted for. List []*TallyItem `json:"list"` Inverted map[*player.Player]*vote.Vote `json:"-"` // contains filtered or unexported fields }
A Tally is a list of players and the votes they have received. It is in descending order by number of votes and by longest held last vote (LHLV).
func (*Tally) Vote ¶ added in v0.3.0
func (t *Tally) Vote(fp *player.FingerPoint)
type TallyItem ¶
A TallyItem represents a line on a tally: a player and a list of votes.
func NewTallyItem ¶ added in v0.3.0
func (*TallyItem) RemoveVote ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.