Skip to content

Commit

Permalink
Add NumberOfPlayers method to Draw struct
Browse files Browse the repository at this point in the history
  • Loading branch information
asenci committed Dec 3, 2019
1 parent 26147b1 commit d6152f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions draws/draws.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ func (d *Draw) Join(player string) error {
return nil
}

func (d *Draw) NumberOfPlayers() int {
return len(d.players)
}

type Draws map[string]*Draw

func (dm Draws) Delete(channel string) {
Expand Down

0 comments on commit d6152f9

Please sign in to comment.