Closed batcsg1 closed 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.
Hazel discovered that when the end of the game is reached, the user is redirected back to the intro of the game.