Appearance
CS101 Word Game: Jennifer's Mini Wordle
python
import jennifersminiwordle.MyWordGame as wg
words = wg.WGLib.parseWordsFile('lowerwords.txt')
wg.startSession(words)Brief Description
The user decides how long the word they want to guess is (X length). The computer will choose a word that the user must guess that is X length long. You have 3 tries to guess the word. After the second try, if you have not guessed the word, the first letter will be revealed to you.
Settings
Players can customize:
- The desired length of the secret word (for example, 3–7 letters).
- Whether hints are enabled after two failed attempts.
- The total number of allowed attempts (default: 3). The game then selects a random word from the word list that matches these settings.
Rules of Play
The player enters a word of the chosen length as their guess.
Invalid guesses (wrong length, uppercase, not in the word list) are rejected with an error message.
After each guess, the number of attempts left and all previous guesses are displayed.
If the word is guessed correctly within the allowed attempts, the player wins.
After two incorrect guesses, a hint appears showing the first letter of the secret word.
If the player uses all attempts without guessing correctly, the correct word is revealed.
At the end of each game, the player can choose to play again.