Appearance
CS101 Word Game: Scrabble(ish)
python
import scrabbleish.MyWordGame as wg
words = wg.WGLib.parseWordsFile('lowerwords.txt')
wg.startSession(words)Brief Description
In this game, an English word would be given in it's scrambled form. The goal of this game is to unscramble it in the least number of tries (with max number of tries being 3).
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
Choose the length you want your word to be within the given parameters. The program will randomly select and scramble a word from dictionary list (lower words.txt) of your chosen length. The scrambled letters are given to you. Type a valid guess (only letters). If your guess matches the hidden word, you earn +1 point, and the game ends. If your guess is wrong, you lose one of the three possible attempts. When 0/3 attempts are left, you will see your score and the correct word. If you guess correctly within the 3 attempts, you'll also see your score. At the end of every round, you'll be prompted to answer y' for yes or 'n' for no for another round.