Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Total number of cards in game DeckSize int = 81 // Default size of game layout StartLayoutSize int = 12 // Number of cards in set SetSize int = 3 // Max possible game layout size (in this size is guaranteed to be a set) MaxLayerSize int = 21 )
Variables ¶
View Source
var (
Deck = generateCards()
)
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
FreeCards []Card `json:"freeCards"`
Layout []Card `json:"layout"`
PossibleSets [][]Card `json:"possibleSets"`
WonCards []Card `json:"wonCards"`
State string `json:"state"`
}
func (*Core) FindSets ¶
Find possible sets in current Core.Layout and paste them in Core.PossibleSets
Click to show internal directories.
Click to hide internal directories.