Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(exit == false) {
- do {
- //your game questions and guessing the number here
- if(guess == answer) {
- break;
- }
- } while(iterations < number_of_tries)
- //ask them if they want to play again here
- //if they dont, set exit to true
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement