From 0fe2fae150cc7dd20ed1a349a78e51c5886a7460 Mon Sep 17 00:00:00 2001 From: Mike Ball Date: Thu, 18 Aug 2022 06:31:44 -0400 Subject: [PATCH] add explanatory code comment --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 773a2b4..6030292 100644 --- a/main.go +++ b/main.go @@ -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