Stanford 2020 Code in Place final project: Hangman game

by Tonya R


My code runs a player through a game (or more) of Hangman using the terminal and a canvas, where the player first chooses a word length (3 or 4 letters) and then guesses letters. Correct guesses are written out to blank lines on the canvas while wrong guesses are tracked in a canvas list and body parts are added to the scaffold. Correct word guesses lead to a happy stick figure; if the player reaches 6 wrong guesses, the stick figure is completed (and sad) and the game ends.