Documentation ¶
Index ¶
- func Card(name string) card
- func CardArray(arr []card) cardArray
- func CardMap(cards []card) cardMap
- func EnsureCardData(cardNames []string) error
- func GameManager(states ...gameState) gameManager
- func GetCardData(cardName string) cardData
- func InitCardDataCache()
- func LoadDeck() ([]string, error)
- func Mana(s string) mana
- func NewGame(libraryRaw []string, handRaw []string, otp bool, verbose bool, maxTurns int) (gameManager, error)
- func NewGameState(library []card, hand []card, otp bool, verbose bool, maxTurns int) gameState
- func PrettyJSON(s string) string
- func Shuffled(seq []string) []string
- func Tag(tagType string, display string, target string) tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureCardData ¶ added in v1.0.3
func GameManager ¶
func GameManager(states ...gameState) gameManager
func GetCardData ¶
func GetCardData(cardName string) cardData
func InitCardDataCache ¶
func InitCardDataCache()
func NewGameState ¶ added in v1.2.0
func PrettyJSON ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.