Design an application that plays guess my number using gui


Problem

Design an application that plays "guess my number" using GUI elements.

The game design requirements are:

1) The program should select a random number from 1 to 1000. The program should then ask the user to guess a number from 1 to 1000. A JTextField can be used for the guesses.

2) After each guess is input, the background color of the box should change to either blue (for cold or low) or red (for hot or high) along with a label that tells the user if they were too high or too low. When the user finally guesses the right answer, the color should be green and the box should change to uneditable. The game should ask the user if they want to play again.

3) At the end of each round of play, the number of guesses it took to get the number correct should be recorded, along with the time it took. When the user indicates that they would like to stop playing the game, the relevant statistics should be displayed in a dialog box before the program ends...so the user knows for each round played, how many guesses it took and the time it took to get the right answer. They should hit OK on this box to end the program and the game entirely.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Design an application that plays guess my number using gui
Reference No:- TGS03298246

Expected delivery within 24 Hours