hint

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Rows [3]string = [3]string{"qwertyuiop", "asdfghjkl", "zxcvbnm"}

keyboard rows

Functions

func DrawKeyboard

func DrawKeyboard(s tcell.Screen, isLatest bool)

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

func UpdateLetter

func UpdateLetter(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
}
var LetterStatus HintStatus = HintStatus{
	Previous: initialLetterStatus,
	Current:  initialLetterStatus,
}

Jump to

Keyboard shortcuts

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