Versions in this module Expand all Collapse all v0 v0.0.1 May 10, 2020 v0.0.0 May 10, 2020 Changes in this version + const MaxHandSize + const MaxPlayers + const RulesText + var CardHelpText = [...]string + var CardNames = [...]string + var CardStrengths = [...]int + var CardText = [...]string + var CardTypes = [...]CardType + type Card uint8 + const Asteroids + const Battleship + const Cruiser + const Destroyer + const Dreadnaught + const Escort + const Fighter + const Frigate + const Hologram + const NoCard + const Probe + const Singularity + const SolarWind + const Tactician + const Tesseract + type CardList []Card + func NewDeck() CardList + func (h *CardList) PlayCardInto(cardIndex int, destination *CardList) + func (h *CardList) RemoveAll(card Card) + func (h *CardList) RemoveCardAt(cardIndex int) + func (h CardList) Same(other CardList) bool + func (h CardList) Score(g *GameState) int + func (h CardList) Shuffle() + type CardType uint8 + const Battlefield + const Special + const Warship + func (c CardType) String() string + type GameState struct + Battlefield Card + Deck CardList + Players []Player + Turn int + func (g *GameState) AddPlayer(name string) + func (g *GameState) Advance() + func (g *GameState) CensoredCopy(playerNum int) GameState + func (g *GameState) ClearTable() + func (g *GameState) DealCards() + func (g *GameState) FinishBattle() + func (g *GameState) HandleHologram(playerNum int) + func (g *GameState) HandleSingularity() + func (g *GameState) HandleTesseract() + func (g *GameState) IsPlayersTurn(playerNum int) bool + func (g *GameState) MakeDeck() + func (g *GameState) Pass(playerNum int) + func (g *GameState) PlayerMustPass(playerNum int) bool + func (g *GameState) Setup() + func (g *GameState) SetupPlayers(players int) + func (g *GameState) SetupWithPlayers(players int) + func (g *GameState) StartBattle() + func (g *GameState) StrongestWarshipPlayed() Card + func (g *GameState) TakeTurn(playerNum int, playsCardAt int) + func (g *GameState) Winners() []int + type Phase uint + const Dealing + const FinishingBattle + const FinishingGame + const Lobby + const WaitingOnPlayer + type Player struct + Hand CardList + IsPassing bool + Name string + Played CardList + Victories int + func (p *Player) PlayCardAt(index int)