Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Write a Guessing Game. In the game, the user will guess a number. a. In the StartGui, the use needs to choose a difficulty
1. Write a Guessing Game. In the game, the user will guess a number. a. In the StartGui, the use needs to choose a difficulty level: Easy or Difficult. If easy level is selected, the user will guess between 1 and 10. If difficult level is selected, the user will guess 1 and 100. Then the user will click start button and go to the GamePage b. In the GamePage, the user will enter his/her guess in a textfield. The interface will give a hint to the user that the user needs to guess a higher or lower number and allow the user to enter a new guess. The user has a maximum of ten tries. You need to display number of tries left. There is a button "Give UP". If the user clicks Give Up or the user reaches tries limit (10 times, i.e the user can only try 10 times for each number), the answer will show up in a new Window (a new swingGUl frame. If the guess is correct, the new window will tell the player that he/she is right. The player can choose to play again from the StartGUI
Step 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