Documentation ¶
Index ¶
Constants ¶
View Source
const ( SelfPlayer = 0 BotPlayer = 1 )
View Source
const (
StarPlayThreshold = 10.0 // equity
)
Variables ¶
This section is empty.
Functions ¶
func MakeRequest ¶
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
func (*Bot) Deserialize ¶
func (bot *Bot) Deserialize(data []byte) (*game.Game, *pb.EvaluationRequest, pb.BotRequest_BotCode, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) RequestMove ¶
Send a game to the bot and get a move back.
type ShellController ¶
type ShellController struct {
// contains filtered or unexported fields
}
func NewShellController ¶
func NewShellController(cfg *config.Config, execPath string) *ShellController
func (*ShellController) IsBotOnTurn ¶
func (sc *ShellController) IsBotOnTurn() bool
func (*ShellController) IsPlaying ¶
func (sc *ShellController) IsPlaying() bool
type ShellOptions ¶
type ShellOptions struct { runner.GameOptions // contains filtered or unexported fields }
Options to configure the interactve shell
func NewShellOptions ¶
func NewShellOptions() *ShellOptions
func (*ShellOptions) ToDisplayText ¶
func (opts *ShellOptions) ToDisplayText() string
Click to show internal directories.
Click to hide internal directories.