hint

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawKeyboard

func DrawKeyboard(s tcell.Screen, state *HintStatus, isLatest bool)

hint keyboard shows previous hint (at the start of screen paint) or latest hint

func UpdateLetter

func UpdateLetter(state *HintStatus, pos guess.LetterPosition, l string)

update letter hint

Types

type HintInfo

type HintInfo struct {
	Correct   map[string]bool
	Incorrect map[string]bool
	Missing   map[string]bool
}

type HintStatus

type HintStatus struct {
	Previous HintInfo
	Current  HintInfo
}

func GetInitialState added in v1.0.0

func GetInitialState() HintStatus

get initial state

Jump to

Keyboard shortcuts

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