shell

package
v0.6.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: GPL-3.0 Imports: 35 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SimLog   = "/tmp/simlog"
	InferLog = "/tmp/inferlog"
)

Variables

This section is empty.

Functions

func Endgame added in v0.4.10

func Endgame(L *lua.LState) int

func Gen added in v0.4.5

func Gen(L *lua.LState) int

func Gid added in v0.4.5

func Gid(L *lua.LState) int

func Load added in v0.4.5

func Load(L *lua.LState) int

func MoveTableRow

func MoveTableRow(idx int, m *move.Move, alph *tilemapping.TileMapping) string

func Set added in v0.4.10

func Set(L *lua.LState) int

func Sim added in v0.4.10

func Sim(L *lua.LState) int

func Turn added in v0.4.10

func Turn(L *lua.LState) int

Types

type Mode

type Mode int
const (
	StandardMode Mode = iota
	EndgameDebugMode
	InvalidMode
)

type Response added in v0.4.5

type Response struct {
	// contains filtered or unexported fields
}

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)

func (*ShellController) Set added in v0.4.5

func (sc *ShellController) Set(key string, args []string) (string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL