hint

package
v0.3.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 Reset added in v0.3.0

func Reset()

helper function to reset hint when new game is started

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: setInitialStatus(),
	Current:  setInitialStatus(),
}

Jump to

Keyboard shortcuts

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