Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HintState ¶ added in v1.0.1
type HintState int8
HintStatus indicates the state of a character compared to the solution
const ( HintUnknown HintState = iota // Character has not been guessed yet HintIncorrect HintState = iota // Character is not in the solution HintIncorrectPosition HintState = iota // Character is in the wrong position, but is in the solution HintCorrect HintState = iota // Character is in the correct position )
type Hints ¶ added in v1.0.1
func (Hints) String ¶ added in v1.0.1
String returns the string representation of the Hint for a character
func (Hints) UpdateAlphabetHintMap ¶ added in v1.0.1
UpdateHintMap updates the hint map the given character only if the new hint is better than the current
type Wordle ¶
Wordle represents a wordle game and the necessary state
func (*Wordle) GetAlphabetHints ¶
GetAlphabetHints returns the current games hints for all letters in the alphabet
Click to show internal directories.
Click to hide internal directories.