Skip to content

Instantly share code, notes, and snippets.

@davegotz
Created January 24, 2019 15:34
Show Gist options
  • Save davegotz/dbeee3003faea469ab262cd7da88289a to your computer and use it in GitHub Desktop.
Save davegotz/dbeee3003faea469ab262cd7da88289a to your computer and use it in GitHub Desktop.
Pseudocode for higher lower
#####
# 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