Use PYTHON to create a HANGMAN game: Your hangman game should be broken into appropriate functions, contain a main function, and do the following: 1.The program should randomly select a word from the list: kangaroo,capybara, wombat, koala, wallaby, quokka, platypus, dingo, kookaburra 2. Repeatedly prompt the user to guess a letter. 3.Validate the input 4. All guessed letters should be stored in a two-dimensional list (from problem 2). If the number of times a letter has been guessed is greater than 1, then the user should benotified that they have already guessed this letter and prompted to guess a different letter. The hangman won’t update (grow) if the same incorrect letter is guessed multiple times. 5. The word should be printed where all correctly guessed letters are revealed, and all unguessed letters are replaced with underscores 6. A hangman reflecting the number of incorrect guesses should be printed 7. If all the letters in the word are guessed, then the user wins. If hangman number of incorrect guesses reaches 6, then the user loses
Use PYTHON to create a HANGMAN game: Your hangman game should be broken into appropriate functions, contain a main function, and do the following: 1.The program should randomly select a word from the list: kangaroo,capybara, wombat, koala, wallaby, quokka, platypus, dingo, kookaburra 2. Repeatedly prompt the user to guess a letter. 3.Validate the input 4. All guessed letters should be stored in a two-dimensional list (from problem 2). If the number of times a letter has been guessed is greater than 1, then the user should benotified that they have already guessed this letter and prompted to guess a different letter. The hangman won’t update (grow) if the same incorrect letter is guessed multiple times. 5. The word should be printed where all correctly guessed letters are revealed, and all unguessed letters are replaced with underscores 6. A hangman reflecting the number of incorrect guesses should be printed 7. If all the letters in the word are guessed, then the user wins. If hangman number of incorrect guesses reaches 6, then the user loses
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section: Chapter Questions
Problem 9PP
Related questions
Question
Use PYTHON to create a HANGMAN game:
Your hangman game should be broken into appropriate functions, contain a main function, and do the following:
1.The program should randomly select a word from the list: kangaroo,capybara, wombat, koala, wallaby, quokka, platypus, dingo, kookaburra
2. Repeatedly prompt the user to guess a letter.
3.Validate the input
4. All guessed letters should be stored in a two-dimensional list (from problem 2). If the number of times a letter has been guessed is greater than 1, then the user should benotified that they have already guessed this letter and prompted to guess a different letter. The hangman won’t update (grow) if the same incorrect letter is guessed multiple times.
5. The word should be printed where all correctly guessed letters are revealed, and all unguessed letters are replaced with underscores
6. A hangman reflecting the number of incorrect guesses should be printed
7. If all the letters in the word are guessed, then the user wins. If hangman number of incorrect guesses reaches 6, then the user loses
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 5 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr