raul
f93efc0986
Submitting an empty guess would cause the game to print one of the two "Already guessed" lines, now it checks for empty input and ignores it accordingly. Also, I assigned the guess variable to an empty string at the end of the game() loop to reset it because I realized that inputting empty strings after a single guess would cause the same bug to re-appear because the variable hadn't changed from last attempt. |
||
---|---|---|
.gitignore | ||
LICENSE.md | ||
README.md | ||
go.mod | ||
go.sum | ||
main.go | ||
words.txt |
README.md
hangman
Rudimentary Hangman game built using Go