Skip to content

Instantly share code, notes, and snippets.

@nns2009
Last active September 1, 2020 09:55
Show Gist options
  • Save nns2009/5fa80687ca6c3cab0c1ccc28d3e898ad to your computer and use it in GitHub Desktop.
Save nns2009/5fa80687ca6c3cab0c1ccc28d3e898ad to your computer and use it in GitHub Desktop.
I made a game in under one minute, here it is
# 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