def GAME():
print("GAME LOADING...")
a=int(input("What is the lower bond of the number?"))
b=int(input("What is the upper bond of the number?"))
print("Generating random numbers between "+str(a)+"-"+str(b)+".")
import random
c=random.randint(a,b)
d=int(input("How many tries for the player to win?"))
g=int(d-1)
print("GAME READY. Now let's play!")
e=str(input("Hello, What's your name?"))
print("Hi "+e+" ,you are going to guess a number between "+str(a)+" and "+str(b)+".")
print("You have "+str(d)+" tries to win the game.")
i=0
while(i<=g):
i=i+1
f=int(input("Your guess is: "))
if(f<c):
print("Your guess is too low")
continue
elif(f>c):
print("Your guess is too high")
continue
elif(f==c):
print("You win the game in "+str(i)+" tries")
break
else:
print("You lose the game,the answer is "+str(c))
GAME()