Question
Write a program for hangman game that randomly picks a word from a text file named hangman.txt and prompts the user to guess one letter
Write a program for hangman game that randomly picks a word from a text file named hangman.txt and prompts the user to guess one letter at a time, as shown in the sample run Each letter in the word is displayed as an asterisk. When the user makes a correct guess, the actual letter is then displayed. When the user finishes a word, the following steps should happen Display the number of misses to the user. Ask the user to give you a new word, then add that word to your file hangman.txt. (Optional If you want to check for the duplicate words in the file) Ask the user whether to continue to play. If the user missed the same letter more than one time give them extra hint to the player like youve already tried this letter, try another letter. Dont count twice the same letter which is missed by the user. Have 10 minimum words of your choice in the file: hangman.txt
The application will be evaluated based upon the following criteria: - GUI Design (4 points) o Designed using suitable GUI controls i.e. labels, text boxes, buttons, menu, etc. - Text File I/O (4 points) - Data validation (1 point) o Provided the needed data validation and proper feedback to the user - Critical Thinking (1 point) o Well thought-out, user-friendly, efficient solution
This is just a sample example. You should change this sample so that your application works within GUI that we have learned to design in the classStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started