Created
January 24, 2019 15:34
-
-
Save davegotz/dbeee3003faea469ab262cd7da88289a to your computer and use it in GitHub Desktop.
Pseudocode for higher lower
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### | |
# Start with player 1, who chooses the number to guess | |
##### | |
# Ask player 1 for a value between 0 and 100 | |
##### | |
# Now it is time for player 2 to guess... | |
##### | |
# Clear the screen so player 2 can't cheat! | |
# Get player 2's first guess. | |
# While the guess is wrong | |
# Tell player 2 if the guess is too high or too low. | |
# Have player 2 guess again. | |
# Congratulate player 2 for getting it right! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment