Guest User

Untitled

a guest
Mar 13th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. 1) Ask for player 1 input between 1-100
  2. 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. 3) repeat until we get a proper input
  4. 4) ask for player 2 input
  5. 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. 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. 7) if player 2 input is player 1 input then we are done
  8. 8) if we aren't done, repeat until we are
Add Comment
Please, Sign In to add comment