catalog

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

All is the explicit ordered catalog of every puzzle game.

Functions

func Categories

func Categories() []game.Category

Categories returns the category view of the catalog in menu order.

func Category

func Category(name string) (game.Category, error)

Category resolves a canonical game name or alias to the menu-facing category.

func CategoryItems

func CategoryItems() []list.Item

CategoryItems returns the category view as list items for Bubble Tea lists.

func Import

func Import(gameType string, data []byte) (game.Gamer, error)

Import reconstructs a saved game for the given canonical game type.

func Lookup

func Lookup(name string) (game.Definition, bool)

Lookup returns a definition by canonical name.

func Names

func Names() []string

Names returns the canonical game names in catalog order.

func Resolve

func Resolve(name string) (game.Definition, bool)

Resolve returns a definition by canonical name or alias.

func Validate

func Validate(definitions []game.Definition) error

Validate checks that the catalog is internally consistent.

Types

type DailyEntry

type DailyEntry struct {
	Spawner  game.SeededSpawner
	GameType string
	Mode     string
}

DailyEntry is a flattened seeded daily candidate with metadata.

func DailyEntries

func DailyEntries() []DailyEntry

DailyEntries returns the flattened daily-eligible seeded modes.

Jump to

Keyboard shortcuts

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