type BettingPool …
type BettingChoice …
type BetOnChoice …
func NewBettingPool(srv common.ChatServer, title string) *BettingPool { … }
func (b *BettingPool) Server() common.ChatServer { … }
func (b *BettingChoice) addMoneyToPool(fromuser common.UserRecord, amount int) { … }
func (b *BettingPool) takeMoneyFromRatz(ratzloses int) { … }
func (b *BettingPool) giveMoneyToRatz(ratzwins int) { … }
func (b *BettingPool) Pool() int { … }
func (b *BettingPool) SetVig(percent float64) { … }
func (b *BettingPool) AssignChoice(choice *BettingChoice) { … }
func (b *BettingPool) MakeBet(u common.UserRecord, amount int, choice *BettingChoice) { … }
func (b *BettingPool) GivePayouts() { … }
func (b *BettingPool) FetchChoice(name string) (choice *BettingChoice) { … }
func (b *BettingPool) SetWinner(choice *BettingChoice) { … }