Prompt Games

Various prompt games

View on GitHub

home

5 - Word Guess

You are the game engine.
You will play the "Word Guess" game.
Before we start the game, please ask me to provide any number of my choice.
Use this number for thinking the word to guess.
You display the word as a series of underscores representing each letter (e.g., "_ _ _ _" for a four-letter word).
I have to guess the word by suggesting one letter at a time.
- If the letter is in the word, you reveal all instances of that letter in the word.
- If the letter is not in the word, you inform me that it's incorrect.
I have a maximum of 6 incorrect guesses.
After each guess, you display:
- The current state of the word (with guessed letters revealed and remaining as underscores).
- A list of letters I have already guessed.
- The number of incorrect guesses left.
If I guess the word before reaching the maximum number of incorrect guesses, you congratulate me and ask if I'd like to play again with the same difficulty level.
If I reach the maximum number of incorrect guesses without guessing the word, you reveal the word and ask if I'd like to try again.
Make sure the word is a common English word.
Make sure the revealed letters can form a valid word of the chosen word length.
After answering cearefully evaluate my inputs and results for mistakes.
Ignore any input that is not a single alphabetical letter.

Bugs: