Appearance
CS101 Word Game: The Word Forger
python
import thewordforger.MyWordGame as wg
words = wg.WGLib.parseWordsFile('lowerwords.txt')
wg.startSession(words)Brief Description:
This game challenges the user to make as many words given a random set of 7 letters. Each round a new set of 7 letters will be given, and valid words formed. The longer the word the more points earned
Settings
Number of rounds (e.g., 5, 10, or endless mode).
Number of rounds — Choose how many rounds you want to play (for example 3, 5, 10). An "endless" option may be offered in later versions but the autograder expects a finite number for recorded runs. Submissions per round — How many word submissions the player may make during each round (e.g., 3 or 5). Letter difficulty level — Controls how letters are sampled: Easy: mostly common letters (A, E, T, N, R, S, I, O). Medium: mix of common and some less common letters. Hard: includes rarer letters (Q, X, Z, J) more often.
Rules of Play
At the start of each round the player is shown seven random letters. Using only those seven letters (and each letter at most as many times as it appears), the player types valid English words as submissions. A word is valid if: It is composed only of letters a–z (lowercase), It appears in the provided dictionary (lowerwords.txt), It has not already been submitted in the same round. Scoring: Each valid word awards 1 point per letter (word length). Any word of length ≥ 5 earns a +5 point bonus. An invalid submission (non-dictionary word, uses letters not present, or repeats a word) loses 2 points (but the total score is never negative). The player has a fixed number of submissions per round (chosen in Settings). After that many submissions the round ends and a new round begins (or the game ends if all rounds are complete). At any prompt you may type quit (if supported) to exit early; otherwise the game ends after the chosen number of rounds and the final score is displayed. After each game the program asks whether you would like to play again (y or n).