arnoao1 / hazel-and-friends-fork

project-24-s1-hazel-and-friends fork created by Aston
3 stars 0 forks source link

When user finishes game, they go back to the start of the game #24

Closed batcsg1 closed 1 month ago

batcsg1 commented 1 month ago

Hazel discovered that when the end of the game is reached, the user is redirected back to the intro of the game.

batcsg1 commented 1 month ago

Implemented feature that allows the user to choose to exit or play the game again from the end of the game. This option system is controlled by a public Boolean variable called "exit" which is initially set to false at the beginning of the game. Now with the do-while loop at the beginning of the game that runs while the user plays the game, and breaks when the user decides to exit. The loop now breaks when the user reaches the end and decides not to play the game again, setting the Boolean "exit" to true.