Documentation ¶
Index ¶
Constants ¶
View Source
const ( BISHOP uint8 = 2 KING uint8 = 4 KNIGHT uint8 = 6 PAWN uint8 = 8 QUEEN uint8 = 10 ROOK uint8 = 12 )
BISHOP piece.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent interface { PlayRound(decoder *json.Decoder) BoardStateMessage GetState(decoder *json.Decoder) BoardStateMessage }
Agent agent.
type AgentCreateMessage ¶
AgentCreateMessage model.
type AgentCreatedMessage ¶
AgentCreatedMessage model.
type Board ¶
type Board interface { AddPlayer(decoder *json.Decoder) BoardStateMessage GetInfo(decoder *json.Decoder) BoardStateMessage GetState(values url.Values) BoardStateMessage GetStates(decoder *json.Decoder) BoardStateMessage PlayRound(decoder *json.Decoder) BoardStateMessage }
Board board.
type BoardCreatedMessage ¶
BoardCreatedMessage board.
type BoardStateMessage ¶
type BoardStateMessage struct {
End, Invalid bool
State board
}
BoardStateMessage models.
type BoardStatesMessage ¶
BoardStatesMessage models.
type GameJoinMessage ¶
GameJoinMessage board
type InvalidMove ¶
type InvalidMove struct{}
InvalidMove error.
func (InvalidMove) Error ¶
func (err InvalidMove) Error() string
Click to show internal directories.
Click to hide internal directories.