Documentation ¶
Index ¶
- func MaxValuesUpd(troopix int, values []int) (updValues []int, max bool)
- type Deck
- func (deck *Deck) BotDrawNo(isFirst bool) (no int)
- func (d *Deck) DeckTacNo() int
- func (d *Deck) DeckTroopNo() int
- func (d *Deck) InitRemoveCards(cardixs []int)
- func (d *Deck) MaxValues() (values []int)
- func (d *Deck) OppDraw(troop bool)
- func (deck *Deck) OppDrawNo(isFirst bool) (no int)
- func (deck *Deck) OppHand() []int
- func (deck *Deck) OppKnowns() (noTacs, noTroops int, handCardixs []int)
- func (d *Deck) OppPlay(cardix int)
- func (d *Deck) OppScoutReturn(troops int, tacs int)
- func (d *Deck) OppSetInitHand(troops int, tacs int)
- func (deck *Deck) OppTacNo() int
- func (deck *Deck) OppTroopNo() int
- func (d *Deck) PlayDraw(cardix int)
- func (d *Deck) PlayScoutReturn(troops []int, tacs []int)
- func (d *Deck) Reset()
- func (deck *Deck) ScoutReturnTacPeek() int
- func (deck *Deck) ScoutReturnTroopPeek() int
- func (deck *Deck) Tacs() map[int]bool
- func (deck *Deck) TfScoutReturnMoveTacs() []int
- func (deck *Deck) TfScoutReturnMoveTroops() []int
- func (deck *Deck) Troops() map[int]bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deck ¶
type Deck struct {
// contains filtered or unexported fields
}
Deck contain all information of unknown cards. That includes decks and the hand of the opponent. It also tracks cards returned to deck when scout is played.
func (*Deck) DeckTroopNo ¶
DeckTroopNo returns the current troop deck size.
func (*Deck) InitRemoveCards ¶
InitRemoveCard removes a cards from decks. Warning does not include scout return it should be used for init. moves.
func (*Deck) OppScoutReturn ¶
OppScoutReturn update the deck with the opponent scout return move.
func (*Deck) OppSetInitHand ¶
OppSetInitHand sets the opponents initial hand. Only used when restarting a old game. The deck initialize with 7 troops card.
func (*Deck) OppTroopNo ¶
func (*Deck) PlayScoutReturn ¶
PlayScoutReturn registor a scout return move. Cards are delt from the back.
func (*Deck) ScoutReturnTacPeek ¶
func (*Deck) ScoutReturnTroopPeek ¶
func (*Deck) TfScoutReturnMoveTacs ¶
func (*Deck) TfScoutReturnMoveTroops ¶
Click to show internal directories.
Click to hide internal directories.