lib

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Card

func Card(name string) card

func CardArray

func CardArray(arr []card) cardArray

func CardMap

func CardMap(cards []card) cardMap

func EnsureCardData added in v1.0.3

func EnsureCardData(cardNames []string) error

func GameManager

func GameManager(states ...gameState) gameManager

func GetCardData

func GetCardData(cardName string) cardData

func InitCardDataCache

func InitCardDataCache()

func LoadDeck

func LoadDeck() ([]string, error)

func Mana

func Mana(s string) mana

func NewGame

func NewGame(libraryRaw []string, handRaw []string, otp bool, verbose bool, maxTurns int) (gameManager, error)

func NewGameState added in v1.2.0

func NewGameState(library []card, hand []card, otp bool, verbose bool, maxTurns int) gameState

func PrettyJSON

func PrettyJSON(s string) string

func Shuffled added in v1.0.0

func Shuffled(seq []string) []string

func Tag

func Tag(tagType string, display string, target string) tag

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL