Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTurnBasedBots ¶
InitTurnBasedBots is an helper that starts and discovers connected bots
Types ¶
type Bot ¶
type Bot interface { Name() string SetName(string) Path() string Start() error SendMessage(QuestionMessage) (*ReplyMessage, error) }
type QuestionMessage ¶
type QuestionMessage struct { GameID string `json:"game-id,omitempty" binding:"required"` Action string `json:"action,omitempty" binding:"required"` Game string `json:"game,omitempty" binding:"required"` Players int `json:"players,omitempty"` Board interface{} `json:"board,omitempty"` You interface{} `json:"you,omitempty"` PlayerIndex int `json:"player-index,omitempty" binding:"required"` }
type ReplyMessage ¶
Click to show internal directories.
Click to hide internal directories.