Inspiration
Major League Hacking is my inspiration.
What it does
It is a guessing game.
How we built it
I built it using python.
import random
answer = random.randint(1,20)
print("I am guessing a number from 1 to 20.")
count = 0
while(True):
count = count + 1
print("Can you guess it?")
prediction = int(input())
if prediction > answer:
print("The answer is too high.")
elif prediction < answer:
print("The answer is too small")
else:
print("It is correct")
break
print("You have attempted for " + str(count) + "times.")
Challenges we ran into
It was a fun challenge.
Accomplishments that we're proud of
I am proud of taking this challenge.
What we learned
I learned python.
What's next for Command Line Game
Build a more advanced game for command line.
Log in or sign up for Devpost to join the conversation.