13 lines
208 B
Go
13 lines
208 B
Go
|
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
|
||
|
}
|