Appearance
CS101 Word Game: Hangman
python
import hangman2.MyWordGame as wg
words = wg.WGLib.parseWordsFile('lowerwords.txt')
wg.startSession(words)Brief Description
The goal of the game is to guess a secret word generated by the computer. The user has 3x the length of the word guesses to guess the word and their score is based on how many letters they guess right and if they guess the correct word in the end. If the player guesses a correct letter the letter is revealed in the spot of the word.
Settings
The user gets to choose the length of word they would like to guess. Other than that, simply play the game!
Rules of Play
The user will pick the length of the word they would like to guess. Each guess after that can be a letter or a word. When the player guesses a letter, if it's in the secret word, the letter is revealed. The program keeps track of previous guesses but will not stop the player if they guess a letter twice. Once a word is guessed, the game ends, even if the word is wrong. If the player is correct, they get 3x the length of the word points. If not, they get the amount of points they ended with. The only valid guesses are those with lowercase letters