resolve

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CategoryAliases = map[string]string{
	"hashi":      "hashiwokakero",
	"bridges":    "hashiwokakero",
	"hitori":     "hitori",
	"lights":     "lights out",
	"nonogram":   "nonogram",
	"sudoku":     "sudoku",
	"takuzu":     "takuzu",
	"binairo":    "takuzu",
	"binary":     "takuzu",
	"words":      "word search",
	"wordsearch": "word search",
	"ws":         "word search",
}

CategoryAliases maps short or alternate names to canonical category names.

Functions

func Category

func Category(name string, categories []list.Item) (game.Category, error)

Category finds a game category by name (case-insensitive, hyphen/underscore-tolerant, with alias support).

func CategoryNames

func CategoryNames(categories []list.Item) []string

CategoryNames returns the display names of all game categories.

func Mode

func Mode(cat game.Category, name string) (game.Spawner, string, error)

Mode finds a mode within a category by name. If name is empty, returns the first (default) mode.

func ModeNames

func ModeNames(cat game.Category) []string

ModeNames returns the display names of all modes in a category.

func Normalize

func Normalize(s string) string

Normalize lowercases and replaces hyphens/underscores with spaces for fuzzy matching of CLI arguments to game/mode names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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