Appearance
CS101 Word Game: Wordle
Wordle```python:line-numbers import wordlewordle.MyWordGame as wg words = wg.WGLib.parseWordsFile('lowerwords.txt') wg.startSession(words)
<Editor id="wordlewordle" />
## Brief Description
Give a 5-letter puzzle. Guess one word each time and provide feedback on whether the positions of the letters are correct or not
## Settings
Word Length: Fixed at 5 letters.
Max Attempts: 6 per game.
Dictionary: Loaded from lowerwords.txt.
Case Sensitivity: All input is treated as lowercase.
Replay: After each game, the player is asked if they want to play again.
## Rules of Play
The game selects a random 5-letter word from a dictionary.
The player has up to 6 guesses.
Each guess must be a valid 5-letter word from the dictionary.
A word cannot be guessed more than once.
After each guess, feedback is given using colored squares:
🟢 Green: Correct letter in correct position.
🟡 Yellow: Correct letter in wrong position.
⚫ Black: Letter not in the word.
The game ends when the player guesses the word or runs out of attempts.