Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Combinations3, Combinations4 []*Combination
Functions ¶
func LastFormationRank ¶
func TroopsToValuexTroopixs ¶
troopsToValues colapses troopixs on values.
Types ¶
type Analysis ¶
type Analysis struct { Comb *Combination Valid uint64 All uint64 HandCardixs []int Prop float64 }
Analysis the result of a combination analysis.
type Combination ¶
type Combination struct { Rank int Formation cards.Formation Strength int //Troops is all the cards that can be used to create the formation. Troops map[int][]int }
Combination a battleline formation and strength
func Combinations ¶
func Combinations(size int) []*Combination
func CombinationsMud ¶
func CombinationsMud(isMud bool) []*Combination
func (*Combination) String ¶
func (c *Combination) String() string
Click to show internal directories.
Click to hide internal directories.