Appearance
CS101 Word Game: Secret Word
python
import secretword.MyWordGame as wg
words = wg.WGLib.parseWordsFile('lowerwords.txt')
wg.startSession(words)Brief Description:
How many guesses will it take for YOU to discover the identity of the secret word? Start by choosing the word length and the starting letter of the secret word, then guess what the word is based on these parameters. Each previous guess tells you whether the secret word comes before or after it alphabetically. Try to guess in as few of turns as you can! The lower the score, the better!
Settings:
The user inputs the length of secret word, a number between 3 and 7 inclusive, and the first letter, which must be a lowercase letter, of secret word that they are trying to guess.
Rules of Play:
Begin by inputing a lowercase letter, then input a number between 3 and 7. To play, simply type in words of that length that start with the same letter until you guess correctly. Each incorrect guess will either be placed into the before or after alphabetical order lists, which you can use to help you narrow down your options and guess. Try to guess in as few of turns as possible for the lowest score.