|
@@ -53,7 +53,7 @@ func main() {
|
|
}
|
|
}
|
|
|
|
|
|
if len(game.Words) == 1 {
|
|
if len(game.Words) == 1 {
|
|
- for word, _ := range game.Words {
|
|
|
|
|
|
+ for word := range game.Words {
|
|
fmt.Printf("The word is: %s\n", word)
|
|
fmt.Printf("The word is: %s\n", word)
|
|
os.Exit(0)
|
|
os.Exit(0)
|
|
}
|
|
}
|
|
@@ -140,7 +140,7 @@ func (g Game) scoreWordsByCommonLetterLocations() error {
|
|
lastWord = word.Word
|
|
lastWord = word.Word
|
|
}
|
|
}
|
|
|
|
|
|
- for idx, _ := range lastWord {
|
|
|
|
|
|
+ for idx := range lastWord {
|
|
letterIdxScores[idx] = make(map[string]int)
|
|
letterIdxScores[idx] = make(map[string]int)
|
|
}
|
|
}
|
|
|
|
|