Documentation ¶
Index ¶
- type ActionRoundOptions
- type BlockingList
- func (l *BlockingList) AddAllButThisBlocking(players []models.Player, k int, bank bank.Interface) []int
- func (l *BlockingList) AddBlocking(k int) error
- func (l *BlockingList) CheckIfEmpty() bool
- func (l *BlockingList) ContainsIndex(i int) bool
- func (l *BlockingList) Get(i int) int
- func (l *BlockingList) GetNext(removed bool, i int) int
- func (l *BlockingList) Length() int
- func (l *BlockingList) RemoveBlocking(i int)
- type Interface
- type Round
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionRoundOptions ¶
type BlockingList ¶
type BlockingList struct {
// contains filtered or unexported fields
}
func NewBlockingList ¶
func NewBlockingList(list []int) *BlockingList
func (*BlockingList) AddAllButThisBlocking ¶
func (*BlockingList) AddBlocking ¶
func (l *BlockingList) AddBlocking(k int) error
func (*BlockingList) CheckIfEmpty ¶
func (l *BlockingList) CheckIfEmpty() bool
func (*BlockingList) ContainsIndex ¶
func (l *BlockingList) ContainsIndex(i int) bool
func (*BlockingList) Get ¶
func (l *BlockingList) Get(i int) int
func (*BlockingList) Length ¶
func (l *BlockingList) Length() int
func (*BlockingList) RemoveBlocking ¶
func (l *BlockingList) RemoveBlocking(i int)
type Round ¶
type Round struct { //Players includes all the Players who have started this hand. After a fold the player is still included Players []models.Player PublicPlayers []models.PublicPlayer Bank bank.Interface Board [5]models.Card HoleCards map[string][2]models.Card SmallBlind *money.Money Dealer int InCount byte Ended bool // contains filtered or unexported fields }
Round is one game of a session. it results in everybody but one folding or a showdown Probably this could be optimised into multiple structs.
Click to show internal directories.
Click to hide internal directories.