Last active
September 1, 2020 09:55
-
-
Save nns2009/5fa80687ca6c3cab0c1ccc28d3e898ad to your computer and use it in GitHub Desktop.
I made a game in under one minute, here it is
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
# Made in 37 seconds | |
# Watch this video to see how: | |
# https://youtu.be/uvKG7uki_N8 | |
# Play the extended HTML port on Itch: | |
# https://nns2009.itch.io/guess-with-lies | |
from random import randrange | |
n = randrange(10000) | |
while True: | |
v = int(input()) | |
if n == v: | |
print('You win') | |
break | |
print('Smaller' if (n < v) ^ (randrange(4) < 1) else 'Bigger') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment