Versions in this module Expand all Collapse all v1 v1.9.0 Mar 22, 2026 Changes in this version + var Entry = gameentry.NewEntry(gameentry.EntrySpec{ ... }) + var ModeDefinitions = gameentry.BuildModeDefs(Modes) + var PDFPrintAdapter = printAdapter v1.8.0 Mar 8, 2026 Changes in this version type Mode + func NewModeWithProfile(title, description string, size, maxCage int, givenRatio float64, ...) Mode v1.7.0 Mar 6, 2026 Changes in this version + var DailyModes = []list.Item + var DefaultKeyMap = KeyMap + var Definition = game.Definition + var HelpContent string + var Modes = []list.Item + func New(mode Mode, puzzle Puzzle) (game.Gamer, error) + type Cage struct + Cells []Cell + ID int + Size int + type Cell struct + X int + Y int + type KeyMap struct + Clear key.Binding + FillValue key.Binding + type Mode struct + GivenRatio float64 + MaxCage int + Size int + func NewMode(title, description string, size, maxCage int, givenRatio float64) Mode + func (m Mode) Spawn() (game.Gamer, error) + func (m Mode) SpawnSeeded(rng *rand.Rand) (game.Gamer, error) + 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 Puzzle struct + Cages []Cage + Givens grid + Height int + Solution grid + Width int + func GeneratePuzzle(width, height, maxCage int, givenRatio float64) (Puzzle, error) + func GeneratePuzzleSeeded(width, height, maxCage int, givenRatio float64, rng *rand.Rand) (Puzzle, error) + type Save struct + Cages []Cage + Givens string + Height int + ModeTitle string + State string + Width int