Python: Hangman || Creating a game in 5 min || All About Education HD

09.02.2018
Hangman- ‘a game for two in which one player tries to guess the letters of a word, the other player recording failed attempts by drawing a gallows and someone hanging on it, line by line’. For those of you who are unfamiliar with the rules, you may read all about it here. (https://en.wikipedia.org/wiki/Hangman_(game)) “The word to guess is represented by a row of dashes, representing each letter of the word. In most variants, proper nouns, such as names, places, and brands, are not allowed. Slang words, sometimes referred to as informal or shortened words, are also not allowed. If the guessing player suggests a letter which occurs in the word, the other player writes it in all its correct positions. If the suggested letter or number does not occur in the word, the other player draws one element of a hanged man stick figure as a tally mark. The player guessing the word may, at any time, attempt to guess the whole word. If the word is correct, the game is over and the guesser wins. Otherwise, the other player may choose to penalize the guesser by adding an element to the diagram. On the other hand, if the other player makes enough incorrect guesses to allow his opponent to complete the diagram, the game is also over, this time with the guesser losing. However, the guesser can also win by guessing all the letters or numbers that appears in the word, thereby completing the word, before the diagram is completed.” Links for files: Word.txt (https://drive.google.com/open?id=1OTYrtTMWqwpUWSppI7p9wjx3v2a45tWE) Hangman_final.py (https://drive.google.com/open?id=1-hIeuzSfjzg_BnexOpUXIMH12QzX0wRY) Please like, share & subscribe!

Похожие видео

Показать еще