Question: 1. Your JavaFX application must include Board with a guest phrase, loaded from a file phrases.txt, provided on the Canvas -> Assignments -> HW5 -
1. Your JavaFX application must include Board with a guest phrase, loaded from a file phrases.txt, provided on the Canvas -> Assignments -> HW5 - Hangman Page. Phrases.txt includes multiple phrases, one per line. Select a random phrase, to create a board. While you are testing, you may want to use the same phrase each time, but you should implement the random phrase logic before you submit your final version.
2. You must have a TextBox for the user to enter a letter, to guess. Also, include a Label next to the TextBox, so it is clear to the user.
3. The board should be blank to start. After each correct guess, update the board to show the letters that match the users guess letter. Also output somewhere on the application Correct! after each correct guess. I will not add any more requirements to how you should build your board, other than make it clear, intuitive, and look good.
4. If the users guess letter is not on the board, output Incorrect! somewhere on the application, and then draw one of the hangmans body parts.
5. The Hangman should include six body parts: head, torso, 2 arms, and 2 legs. Also include a symbol of any university of your choice, on the torso of the hangman. The university symbol should appear with the hangmans torso- it is not to be drawn as a separate body part.
6. After 6 incorrect guesses, the full hangman should be displayed. Also, display a losing message, and then allow the user the option to play again.
7. After the user guess all letters on the board correctly, display a friendly winning message, and then allow the user to play again.
8. If the user chooses to play again, reset the board with a new random phrase from phrases.txt, and start the game again.
9. Export your project as a windows executable file or an executable jar, and include it in your zip file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
