app

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 31 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 (
	GameCategories = gameCategoryItems
)

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