Step 2
TirSystem/github-action: Sync GitHub mirror metadata / sync-metadata (push) Successful in 5s

Replacing blanks with guesses
This commit is contained in:
2026-10-04 12:37:41 +08:00
parent f07c34a5fa
commit 15d5f7134d
6 changed files with 108 additions and 38 deletions
+25 -23
View File
@@ -1,23 +1,25 @@
"""!
@file constants.py
@brief Constants shared across the Hangman game.
"""
## Words the computer picks from.
WORD_LIST = [
"aardvark",
"baboon",
"camel",
"dolphin",
"elephant",
"flamingo",
"giraffe",
"hedgehog",
"iguana",
"kangaroo",
"leopard",
"octopus",
"penguin",
"squirrel",
"tortoise",
]
"""!
@file constants.py
@brief Constants shared across the Hangman game.
"""
## Character shown for a letter that has not been guessed yet.
BLANK = "_"
## Words the computer picks from.
WORD_LIST = [
"aardvark",
"baboon",
"camel",
"dolphin",
"elephant",
"flamingo",
"giraffe",
"hedgehog",
"iguana",
"kangaroo",
"leopard",
"octopus",
"penguin",
"squirrel",
"tortoise",
]