Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #The game is in spanish
- from random import randint
- from os import system
- def juego():
- print("""
- Impossible Riddle
- *******************************************************""")
- var1 = int(input("Escribe un nummero entre el 1 y el 100: "))
- var2 = randint(0, 100)
- if var1 == var2:
- print("""
- Impossible Riddle
- *******************************************************
- Has ganado
- Que desea hacer?
- 1.intentar otra vez
- 2.salir
- """)
- var3 = int(input("Que desea hacer?:"))
- if var3==1:
- juego()
- else:
- exit()
- system("cls")
- else:
- print("""
- Impossible Riddle
- *******************************************************
- Has perdiido
- Que desea hacer?
- 1.intentar otra vez
- 2.salir
- """)
- var3 = int(input("Que desea hacer?:"))
- if var3==1:
- juego()
- else:
- exit()
- system("cls")
- juego()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement