Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MaxPlayers is the maximum number of players allowed in a game. MaxPlayers = 4 // MaxTurns is the maximum number of turns in a game. MaxTurns = 15 // StartingCash is the starting cash for each player. StartingCash = 100 // StartingPrice is the starting price for each company. StartingPrice = 150 // MaxPrice is the maximum price for each company. MaxPrice = 400 // WildcardCompany is the company ID for the wildcard company. WildcardCompany = -1 )
Variables ¶
View Source
var (
// Version is the current version of the game.
Version = "0.0.0-dev"
)
Functions ¶
func StockLevel ¶
StockLevel returns the level for the given stock amount.
Types ¶
type Assets ¶
type Assets struct { Companies []string `json:"companies"` PlayerDeck []*Card `json:"playerDeck"` BankDeck []*Card `json:"bankDeck"` }
func (*Assets) ShuffleBankDeck ¶
func (a *Assets) ShuffleBankDeck()
func (*Assets) ShufflePlayerDeck ¶
func (a *Assets) ShufflePlayerDeck()
type Mod ¶
type Mod struct {
// contains filtered or unexported fields
}
Mod is a value modifier.
func (*Mod) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Mod) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.