Question: --KOTLIN PROGRAMMING-- You will create a game named HW1_NumberGuessingGame in which a random number between 1 and 100 is generated and the user tries to

--KOTLIN PROGRAMMING--

You will create a game named HW1_NumberGuessingGame in which a random number between 1 and 100 is generated and the user tries to guess this number. To help user to narrow down the correct answer, the app needs to provide feedback to the user.

Specially, the app must have the following:

The user must be presented a way to input numerical guesses. For example, you can use an EditText to let the user enter numerical guesses. This EditText must be cleared after clicking the play again button.

The app should provide feedback as to whether the guess made by the user is lower or higher than the correct answer.

The app should have a logic in which the game ends (stops asking guesses or continues to accept guesses) when the user guesses the number correctly.

The app should keep track and display the number of guesses made by the user (i.e., number of tries).

If the user guesses the number correctly, the app should provide a message stating that the user has won the game along with the correct answer.

There should be a way to start the game over and play again once the game has ended.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!