Versions in this module Expand all Collapse all v1 v1.9.0 Mar 22, 2026 Changes in this version + var DefaultKeyMap = KeyMap + var Definition = puzzle.NewDefinition(puzzle.DefinitionSpec{ ... }) + var Entry = gameentry.NewEntry(gameentry.EntrySpec{ ... }) + var HelpContent string + var ModeDefinitions = gameentry.BuildModeDefs(Modes) + var Modes = []game.Mode + var PDFPrintAdapter = printAdapter + func New(mode SpellPuzzleMode, puzzle GeneratedPuzzle) (game.Gamer, error) + type GeneratedPuzzle struct + AllowedWord []string + Bank string + BonusWords []string + Placements []WordPlacement + func GeneratePuzzle(mode SpellPuzzleMode) (GeneratedPuzzle, error) + func GeneratePuzzleSeeded(mode SpellPuzzleMode, rng *rand.Rand) (GeneratedPuzzle, error) + type KeyMap struct + Back key.Binding + Left key.Binding + Right key.Binding + Shuffle key.Binding + Submit key.Binding + type Model struct + func ImportModel(data []byte) (*Model, error) + func (m Model) GetDebugInfo() string + func (m Model) GetFullHelp() [][]key.Binding + func (m Model) GetSave() ([]byte, error) + func (m Model) Init() tea.Cmd + func (m Model) IsSolved() bool + func (m Model) Reset() game.Gamer + func (m Model) SetTitle(t string) game.Gamer + func (m Model) Update(msg tea.Msg) (game.Gamer, tea.Cmd) + func (m Model) View() string + type Orientation int + const Horizontal + const Vertical + type Position struct + X int + Y int + type Save struct + Bank string + BankColors []int + BankCursor int + BonusWords []string + Feedback feedback + ModeTitle string + Placements []WordPlacement + ShowFullHelp bool + Solved bool + Trace []int + type SpellPuzzleMode struct + BankSize int + BoardWordCount int + MinBonusWords int + func NewMode(title, description string, bankSize, boardWords, minBonusWords int) SpellPuzzleMode + func (m SpellPuzzleMode) Spawn() (game.Gamer, error) + func (m SpellPuzzleMode) SpawnSeeded(rng *rand.Rand) (game.Gamer, error) + type WordPlacement struct + Found bool + Orientation Orientation + Start Position + Text string + func (w WordPlacement) Positions() []Position