Documentation ¶
Index ¶
- Constants
- func Endgame(L *lua.LState) int
- func Gen(L *lua.LState) int
- func Gid(L *lua.LState) int
- func Load(L *lua.LState) int
- func MoveTableRow(idx int, m *move.Move, alph *tilemapping.TileMapping) string
- func Set(L *lua.LState) int
- func Sim(L *lua.LState) int
- func Turn(L *lua.LState) int
- type Mode
- type Response
- type ShellController
- type ShellOptions
Constants ¶
View Source
const ( SimLog = "/tmp/simlog" InferLog = "/tmp/inferlog" )
Variables ¶
This section is empty.
Functions ¶
func MoveTableRow ¶
func MoveTableRow(idx int, m *move.Move, alph *tilemapping.TileMapping) string
Types ¶
type ShellController ¶
type ShellController struct {
// contains filtered or unexported fields
}
func NewShellController ¶
func NewShellController(cfg *config.Config, execPath string) *ShellController
func (*ShellController) Execute ¶ added in v0.4.5
func (sc *ShellController) Execute(sig chan os.Signal, line string)
func (*ShellController) IsPlaying ¶ added in v0.4.5
func (sc *ShellController) IsPlaying() bool
func (*ShellController) Loop ¶
func (sc *ShellController) Loop(sig chan os.Signal)
type ShellOptions ¶ added in v0.4.5
type ShellOptions struct { turnplayer.GameOptions // contains filtered or unexported fields }
Options to configure the interactve shell
func NewShellOptions ¶ added in v0.4.5
func NewShellOptions() *ShellOptions
func (*ShellOptions) Show ¶ added in v0.4.5
func (opts *ShellOptions) Show(key string) (bool, string)
func (*ShellOptions) ToDisplayText ¶ added in v0.4.5
func (opts *ShellOptions) ToDisplayText() string
Click to show internal directories.
Click to hide internal directories.