shell

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: GPL-3.0 Imports: 54 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SimLog     = "./macondo-simlog"
	InferLog   = "./macondo-inferlog"
	PEGLog     = "./macondo-peglog"
	EndgameLog = "./macondo-endgamelog"
)
View Source
const (
	VolunteerPollInterval      = 30 * time.Second
	VolunteerHeartbeatInterval = 30 * time.Second
)

Variables

This section is empty.

Functions

func Loader added in v0.9.3

func Loader(L *lua.LState) int

func MergeDirectories added in v0.10.1

func MergeDirectories(srcDir, destDir string) error

func MoveTableRow

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

Types

type Asset added in v0.10.1

type Asset struct {
	Name   string
	URL    string
	GitTag string
}

type CmdOptions added in v0.9.0

type CmdOptions map[string][]string

func (CmdOptions) Bool added in v0.9.0

func (c CmdOptions) Bool(key string) bool

func (CmdOptions) Int added in v0.9.0

func (c CmdOptions) Int(key string) (int, error)

func (CmdOptions) IntDefault added in v0.9.0

func (c CmdOptions) IntDefault(key string, defaultI int) (int, error)

func (CmdOptions) String added in v0.9.0

func (c CmdOptions) String(key string) string

func (CmdOptions) StringArray added in v0.9.0

func (c CmdOptions) StringArray(key string) []string

type CommandMetadata added in v0.11.4

type CommandMetadata struct {
	Options []string // Available options for this command (e.g., "-plies", "-threads")
	Args    []string // Possible argument values (for non-option arguments)
}

CommandMetadata holds autocomplete information for a command

type GameSource added in v0.12.0

type GameSource struct {
	Type       string // "woogles", "xt", "file", "web"
	Identifier string // game ID or file path
	Original   string // original source string (for display)
}

GameSource represents a source for loading a game

type Mode

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

type ReleaseInfo added in v0.10.1

type ReleaseInfo struct {
	TagName string `json:"tag_name"`
	Assets  []struct {
		Name               string `json:"name"`
		BrowserDownloadURL string `json:"browser_download_url"`
	} `json:"assets"`
}

type RenderTemplateData added in v0.11.4

type RenderTemplateData struct {
	FEN            string
	Rack           string
	RemainingTiles template.JS // JSON of remaining tiles
	TileColor      string
	BoardColor     string
	Player0Name    string
	Player1Name    string
	Player0Score   int
	Player1Score   int
	Heatmap        template.JS // JSON of heatmap data
	HeatmapActive  bool        // Whether heatmap mode is active
	HeatmapPlay    string      // The play being analyzed for heatmap
	HeatmapPly     int         // The ply index for heatmap
	PlayerOnTurn   int         // 0 or 1 - which player is on turn
	LastPlay       string      // Last play summary
	AlphabetScores template.JS // JSON map of letter → score for the current alphabet
	BoardLayout    template.JS // JSON array of strings, one per row, using bonus square symbols
	BoardDimension int         // Board size (15 for standard, 21 for super)
}

RenderTemplateData holds all data passed to the 3D render template

type Response added in v0.4.5

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

type ShellCompleter added in v0.11.4

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

ShellCompleter provides context-aware autocomplete for shell commands

func NewShellCompleter added in v0.11.4

func NewShellCompleter(sc *ShellController) *ShellCompleter

func (*ShellCompleter) Do added in v0.11.4

func (c *ShellCompleter) Do(line []rune, pos int) ([][]rune, int)

Do implements the readline.AutoComplete interface It provides context-aware autocomplete based on what's been typed

type ShellController

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

func NewShellController

func NewShellController(cfg *config.Config, execPath, gitVersion string) *ShellController

func (*ShellController) Cleanup added in v0.10.0

func (sc *ShellController) Cleanup()

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)

func (*ShellController) ShowConfig added in v0.12.0

func (sc *ShellController) ShowConfig(key string) (bool, string)

ShowConfig shows a config value from the shell controller

func (*ShellController) ToDisplayTextWithConfig added in v0.12.0

func (sc *ShellController) ToDisplayTextWithConfig() string

ToDisplayTextWithConfig includes both options and config settings

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

type VariationNode added in v0.11.4

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

VariationNode represents a position in the variation tree. The tree structure allows exploring different move sequences from the same position.

type WooglesCollection added in v0.12.0

type WooglesCollection struct {
	UUID        string                  `json:"uuid"`
	Title       string                  `json:"title"`
	Description string                  `json:"description"`
	Games       []WooglesCollectionGame `json:"games"`
}

WooglesCollection represents a collection from the Woogles API

type WooglesCollectionGame added in v0.12.0

type WooglesCollectionGame struct {
	GameID        string `json:"game_id"`
	ChapterNumber uint32 `json:"chapter_number"`
	ChapterTitle  string `json:"chapter_title"`
}

WooglesCollectionGame represents a game in a collection

type WooglesCollectionResponse added in v0.12.0

type WooglesCollectionResponse struct {
	Collection WooglesCollection `json:"collection"`
}

WooglesCollectionResponse represents the API response

Jump to

Keyboard shortcuts

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