Documentation ¶
Index ¶
Constants ¶
View Source
const (
NoPlayer = 2
)
Variables ¶
View Source
var ( //CardAll all the card postions. CardAll CardAllST //ConeAll all the cone postion. ConeAll ConeAllST )
Functions ¶
This section is empty.
Types ¶
type Card ¶
type Card uint8
Card postion.
func (Card) MarshalJSON ¶
MarshalJSON marshalls a card postion to json number to make a uint8 (byte) readable as a number.
func (*Card) UnmarshalJSON ¶
UnmarshalJSON unmarshalls a json number to a card postion. This is need because a of a slice of uint8 is confusing json unmarchal single value number slice is string.
type CardAllPlayerST ¶
CardAllPlayerST player of card postion singleton.
type CardAllST ¶
type CardAllST struct { Size int DeckTroop Card DeckTac Card Players [2]CardAllPlayerST }
CardAllST card postion all singleton.
type Cone ¶
type Cone uint8
Cone the cone position.
func (Cone) MarshalJSON ¶
MarshalJSON marshalls cone to json int.
func (*Cone) UnmarshalJSON ¶
UnmarshalJSON unmarshalls json number to to a cone postion.
Click to show internal directories.
Click to hide internal directories.