app

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: 24 Imported by: 0

Documentation

Overview

Package app implements the root TUI model for PuzzleTea, including the Elm-architecture update/view loop, game spawning, and debug overlay.

Index

Constants

This section is empty.

Variables

View Source
var Categories = catalog.Categories()

Categories is the typed catalog view used by stats and print-export helpers.

View Source
var GameCategories = catalog.CategoryItems()

GameCategories is the list.Item view of Categories for Bubble Tea lists.

Functions

func InitialModel

func InitialModel(s *store.Store, cfg *config.Config) model

InitialModel creates the root TUI model for the main menu.

func InitialModelWithGame

func InitialModelWithGame(s *store.Store, cfg *config.Config, g game.Gamer, activeGameID int64, completionSaved bool) model

InitialModelWithGame creates a model that starts directly in gameView, bypassing the menu. Used by CLI flags (--new, --continue).

Types

This section is empty.

Jump to

Keyboard shortcuts

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