Appearance
CS101 Word Game: Rack Attack
python
import rackattack.MyWordGame as wg
words = wg.WGLib.parseWordsFile('lowerwords.txt')
wg.startSession(words)Brief Description
Rack Attack is a single-player word game. You get a random rack of letters from an English word and try to make valid words. Each valid word scores points equal to its length.
Settings
Rack Size: choose an integer from 5 to 8. Minimum Word Length: choose an integer from 3 to 6. Play Again: choose y or n when prompted after each game.
Rules of Play
Choose a rack size (5–8) and a minimum word length (3–6). A rack of letters is generated from a real dictionary word. Type a word using only letters from the rack. You may reuse a letter only if it appears multiple times in the rack. The word must be in the dictionary, meet the minimum length, and not be a repeat. Each valid word adds points equal to its length. Type quit at any time to end the game. After the game, you will be prompted to play again.