Appearance
CS101 Word Game: Console Wordle
python
import consolewordle.MyWordGame as wg
words = wg.WGLib.parseWordsFile('lowerwords.txt')
wg.startSession(words)Brief Description
Guess a secret English word in a limited number of turns. After each valid guess you get feedback per letter: G for correct letter in the correct spot, Y for correct letter in the wrong spot, and - for a letter not in the word.
Settings
Word Length: choose an integer from 4 to 7. If the chosen length has no words in the list, the game falls back to 5. Difficulty: easy -> 8 turns normal -> 6 turns hard -> 5 turns
Rules of Play
The game selects a secret word from the word list of the chosen length. On each turn enter a valid English word of the chosen length. Repeats are not allowed. Validation checks length, letters only, membership in the list, and not previously guessed. Invalid inputs will reprompt. After each valid guess you see: the guess with per letter marks G means correct letter and position Y means letter is in the word but a different position
means the letter is not in the word
a simple keyboard display shows the best known status for each letter Win by guessing the secret word within the allowed turns. If you win, your score is turns_allowed - turns_used + 1. If you lose, your score is 0.