tui

package
v0.0.0-...-59b50ae Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseModel

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

func InitialModel

func InitialModel(game *mancala.Game) *BaseModel

InitialModel creates a new model with the given game.

func (BaseModel) Init

func (m BaseModel) Init() tea.Cmd

Init is a Bubble Tea method to initialize the model.

func (BaseModel) Update

func (m BaseModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update is a Bubble Tea method to update the model based on the given message.

func (BaseModel) View

func (m BaseModel) View() string

View is a Bubble Tea method to render the current model.

Jump to

Keyboard shortcuts

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