shell

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func MoveTableRow

func MoveTableRow(idx int, m *move.Move, alph *alphabet.Alphabet) string

Types

type Mode

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

type Response

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

func (sc *ShellController) Execute(sig chan os.Signal, line string)

func (*ShellController) IsPlaying

func (sc *ShellController) IsPlaying() bool

func (*ShellController) Loop

func (sc *ShellController) Loop(sig chan os.Signal)

func (*ShellController) Set

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

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) Show

func (opts *ShellOptions) Show(key string) (bool, string)

func (*ShellOptions) ToDisplayText

func (opts *ShellOptions) ToDisplayText() string

Jump to

Keyboard shortcuts

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