Skip to content

Commit

Permalink
add explanatory code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mdb committed Aug 18, 2022
1 parent 5dc1e6d commit 0fe2fae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ type wordle struct {
evaluations [maxGuesses][wordLength]evaluation

// keyboardChars is a slice of all keyboard characters
// Because Go does preserve the order of maps, keyboardChars
// stores the keyboard key characters in the order in which
// they typically appear on many keyboards.
keyboardChars []rune

// keyboard is a map of alphabetical keyboard keys to an evaluation of each key character
Expand Down

0 comments on commit 0fe2fae

Please sign in to comment.