Appearance
CS101 Word Game: NewWordle
python
import newwordle.MyWordGame as wg
words = wg.WGLib.parseWordsFile('lowerwords.txt')
wg.startSession(words)Brief Description
NewWordle is a modified edition of Wordle. The goal is to let the player guess the secret word in 5 turns, with feedback given after each guess.
Settings
At the game start, the player is prompted for one setting: select the word length (4-6) they want to play.
Rules of Play
The game consists of 5 turns. The goal is to guess the secret word within that 5 turns. When the game begins, the player has 5 turns of guesses and a secret word randomly chose by the game with specific length. On a turn, the player enters a "guess" with this specfic word length. A guess is valid if and only if: a) It is a valid word which can be found in the English dictionary. b) It is a word with the certain word length. Invalid guesses are shown to be invalid, then the user is reprompted for another guess. After player enters a guess, it would give a feedback to the player's guess, with rules below: a) If the character is in the correct position, it will be marked with a double parathesis. b) If the character is in the secret word but not in correct position, it will be marked with a single parathesis. c) If the character is not in the secret word, it remains the same. If the player got the secret word within 5 turns, then the game ends early; If the player fails to get the secret word, the game ends and the player loses the game. When the game ends, the summary of the result will be shown.