In [ ]:
#!/usr/bin/python
from random import randint #For the random number generator
import random #Surrporting Randint
from time import sleep #Used to break the code
from os import system
def clear_output(): #This will be used to clear the screen
system("sis")
#The Random Number generator and the ability to clear the screen
totalmatches = 0
totalwins = 0
extememodegames = 0
extremewins = 0
achievments = 0
#The total amount of matches you have won and lost
def numbergaming():
Number = random.randint(0, 2000000000) #The random number generator, you ain't beating this
for lives in range(1, 31): #Lives you have until no more
Guess1 = int(input("Input Number here")) #The Number Guessing begins
if Guess1 == Number:
totalmatches = +1 #You won so total matches goes up
totalwins = +1 #You won, the total wins goes up
clear_output() #Clearing the screen
print("You win") #You win!
print("You have played {} games, and won {} games".format(totalmatches, totalwins))
sleep(randint(1, 1)) #Just slowing down the code so I can make it not overwork
print("Would you like to go again?")
input("Would you like to go again? Y/N")
if user_input == "Y": #Wanna replay
numbergaming() #Going to game again
elif user_input == "N": #Not going to game
print("Don't want bragging rights? Goodbye!") #Adios
if Guess1 != Number: #You haven't won
print("You have not won yet")
sleep(randint(1, 1)) #Sleep to slow down the code
lives #For the thing below
print("You have {}/30 guesses done".format(lives)) #Prints it
if Guess1 > Number: #If you are guessing less than
print("It is Less than the number you have inputed")
if Guess1 < Number: #It is Greater than the number you guessed
print("It is Greater than the number you have guessed")
if lives > 30:
totalmatches = +1
print("You have played {} games and have won {} games".format(totalmatches, totalwins)) #You won this many games and ran this many games
print("Would you like to go again?")
input("Would you like to go again? Y/N") #Simple question to which if you want to guess the number again
if user_input == "Y": #Wanna replay
numbergaming() #Going to game again
elif user_input == "N": #Not going to game
print("Don't want bragging rights? Goodbye!") #Adios
clear_output
def insanity():
Number2 = random.randint(0, 13000000000) #Instead of 0 to 2 Billion, hard mode is zero to 13 Billion
for chances in range (1, 2): #One try for hard mode
print("Guess a number between 0 and 13 Billion") #Just telling you
Guess2 = int(input()) #The number the user selects
if Guess2 == Number2: #You actually win (Rare)
print("You win")
extememodegames = +1 #How many games of extreme mode you played
extemewins = +1 #wins
sleep(randint(1, 2)) #Break
print("You have won {} games in Extreme Mode and played {} games. for Winning Extreme Mode, you get your bragging rights.".format(extremewins, extrememodgames)) #Telling you those stats
print("Would you like to play again") #Just asking
input("Would you like to go again? Y/N") #Actually formulating the question here
if user_input == "Y": #Wanna replay #Yes and you do a replay
insanity() #Staying in this mode
elif user_input == "N": #Go to normal game mode
numbergaming() #Going to the normal game
if Guess2 != Number2: #You lose
print("Better luck next time") #Better luck
extrememodegames = +1 #You played
print("You won {} games and played {} games".format(extremewins, extrememodegames)) #Just gonna tell you
print(Number2)
sleep(randint(1, 4)) #sleep
insanity() #Going back until you win
def menu():
name = input("Input name")
print("Hello {}, welcome to the Guessing Numbers Game Show.".format(name))
sleep(randint(2, 2))
print("This is the only game where you have to guess a number between zero and two billion. If you win 10 times on standard mode, you getting bragging rights.")
sleep(randint(2, 2))
print("Or you can do the hard mode where you have 0 tries and can only guess once. If you win it, you get immediate bragging rights.")
sleep(randint(2, 2))
print("Option one, exit")
print("Option two, normal mode")
print("Option Three, extreme mode")
sleep(randint(2, 2))
user_input = input("Choose your options")
if user_input == "1":
print("Have a good day")
if user_input == "2":
numbergaming()
if user_input == "3":
print("There is no turning back now {}".format(name))
sleep(randint(2, 2))
insanity()
if __name__ == "__main__":
menu()