Rudimentary Hangman game built using Go
Go to file
raul f93efc0986 Fixed errors when entering empty input
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.
2024-02-22 07:19:20 +00:00
.gitignore Initial commit 2024-02-14 12:21:01 +01:00
LICENSE.md Testing LICENSE name 2024-02-15 10:51:01 +00:00
README.md Initial commit 2024-02-14 12:21:01 +01:00
go.mod Added OS-agnostic screen clearing 2024-02-19 10:56:42 +00:00
go.sum Added OS-agnostic screen clearing 2024-02-19 10:56:42 +00:00
main.go Fixed errors when entering empty input 2024-02-22 07:19:20 +00:00
words.txt Moved file-reader into its own repo 2024-02-14 11:23:43 +00:00

README.md

hangman

Rudimentary Hangman game built using Go