pkg

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Instance = &Game{}

Functions

func A

func A()

func B

func B()

func C

func C()

Types

type Disk

type Disk struct {
	// contains filtered or unexported fields
}

type Game

type Game struct {
	*yaq.Base
	*tea.Program

	Name   string   `yaml:"name"`
	Levels []string `yaml:"levels"`
	// contains filtered or unexported fields
}

func (*Game) Init

func (g *Game) Init() tea.Cmd

func (*Game) MarkResult

func (g *Game) MarkResult()

func (*Game) Update

func (g *Game) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Game) View

func (g *Game) View() string

type Level

type Level struct {
	*Game
	Code string `tomal:"code"`

	Hint string `tomal:"hint"`

	Disks int `tomal:"disks"`
	// contains filtered or unexported fields
}

type Pile

type Pile struct {
	*Game
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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