hangman/logic.go

13 lines
208 B
Go
Raw Permalink Normal View History

package main
func getLetter(letter string) (isFound bool) {
isFound = false
for i, v := range randWord {
if letter == string(v) {
isFound = true
hiddenChars[i] = string(v)
}
}
return isFound
}