Code a Hangman Game using Python from Scratch!! Part 2 - Win/Loss, Draw Outputs, and Track Guesses!!

preview_player
Показать описание
This is part two of a two part tutorial showing how to create the classic word guessing game 'hangman' using python and pycharm! The previous episode covered creation of the code, receiving user input for guesses, handling guesses that are too long, and checking to see if the guesses are correct or not. Upon a good guess where it is a letter that appears in the answer, we update the secret word to show the letters that have been guessed!

In this video we will handle keeping track of all past guesses, handling win/lose scenarios and drawing our dead guy as he gets progressively closer to being filled out and the game being over!

If you like the content from this page please like and subscribe to the channel to see lots more like this! Thanks so much for supporting the page and good luck coding!
Рекомендации по теме
Комментарии
Автор

Hey! A friend of mine was using your code to learn python and we noticed that the code errored out if too many letters were entered at the same time. I added another if statement in the while loop to fix it and it runs smoothly now!
Thanks for the tutorial!

DenykaBrown
Автор

Is there a way to add a list of words instead of having someone input a word to guess so the computer chooses a random word from the list?

jeremyhurst
visit shbcf.ru