Skip to content

Instantly share code, notes, and snippets.

@bluebear94
Created March 2, 2017 05:13
Show Gist options
  • Save bluebear94/4be2495fbf3c74e974b4af23392b6d3d to your computer and use it in GitHub Desktop.
Save bluebear94/4be2495fbf3c74e974b4af23392b6d3d to your computer and use it in GitHub Desktop.
n←ř(1,100)
g←0
ḋ("Guess the number!")
m←0
↺m≠n{
ḋ("n =? ",0)
m←ž$ĩ()
g+←1
?m<n{ḋ("Too low!")}
?m>n{ḋ("Too high!")}
}
ḋ("You guessed it in "~g~" guesses!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment