Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) Ask for player 1 input between 1-100
- 2) if the input is not between 1 and 100, then tell the player it is not between 1-100 and ask for player 1 input between 1-100
- 3) repeat until we get a proper input
- 4) ask for player 2 input
- 5) if player 2 input is above player 1 input then tell the player that his guess is above and ask for player 2 input
- 6) if player 2 input is below player 1 input then tell the player that his guess is below and ask for player 2 input
- 7) if player 2 input is player 1 input then we are done
- 8) if we aren't done, repeat until we are
Add Comment
Please, Sign In to add comment