Appearance
CS101 Word Game: Word Scramble Challenge
python
import wordscramblechallenge.MyWordGame as wg
words = wg.WGLib.parseWordsFile('lowerwords.txt')
wg.startSession(words)Brief Description
In this game, you will unscramble a jumbled English word chosen from a dictionary list. You have to type the correct word before running out of guesses to earn points.
Settings
Word Length: Players will choose a secret word length between 4 and 8 letters for the secret word. Attempts: The player has three attempts to guess the original word and earn points before the game ends.
Rules of Play
At the start of the game, choose a word length to set your difficulty level. The program will randomly select and scramble a word from lower words.txt of your chosen length. The scrambled letters are displayed on your screen. Type a valid guess using letters only. If your guess matches the hidden word, you earn +1 point, and the game ends. If your guess is wrong, your remaining attempts are reduced by 1. When all attempts are used or the word is guessed correctly, you will see the correct word and your score. After one round of the game, you can decide to play again by entering 'y' for yes or 'n' for no.