Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os,random,time,datetime,turtle
- #turtle.hideturtle()
- #turtle.speed(0)
- #turtle.penup()
- #turtle.goto(200,100)
- #turtle.color("red")
- #turtle.write("Respect Payer", align="right", font=("Trebuchet MS", 40, "italic"))
- #turtle.goto(150,60)
- #turtle.color("orange")
- #turtle.write("blaze it", align="right", font=("Kid Kosmic", 20, "bold"))
- #turtle.goto(-60,80)
- #turtle.color("purple")
- #turtle.write("420 edition", align="right", font=("Trebuchet MS", 13, "italic"))
- #turtle.done()
- #turtle.color("black")
- #turtle.penup()
- #turtle.goto(-100,0)
- #turtle.write("Teach With Code!", None, "left", "16pt bold")
- #time.sleep()
- date= datetime.datetime.now()
- dmy = str(date.day-1)+"/"+str(date.month)+"/"+str(date.year)
- gravestone = ("""
- _____ _____
- < `/ |
- > (
- | _ _ |
- | |_) | |_) |
- | | \ | | |
- | |
- ______.______%_| |__________ _____
- _/ \| |
- | J I M M Y M C G I M M I <
- |_____.-._________ ____/|___________|
- |* 1/6/2001 |
- | """+dmy+""" |
- | |
- | |
- | _ <
- |__/ |
- / `--. |
- %| |%
- |/.%%| -< @%%%
- `\%`@| v |@@%@%%
- .%%%@@@|% | % @@@%%@%%%%
- _.%%%%%%@@@@@@%%_/%\_%@@%%@@@@@@@%%%%%%""")
- gravestoneSeed = ("""
- _____ _____
- < `/ |
- > (
- | _ _ |
- | |_) | |_) |
- | | \ | | |
- | |
- ______.______%_| |__________ _____
- _/ \| |
- | J I M M Y M C G I M M I <
- |_____.-._________ ____/|___________|
- |* 1/6/2001 |
- | """+dmy+""" |
- | |
- | |
- | _ <
- |__/ |
- / `--. |
- %| |%
- |/.%%| -< @%%%
- `\%`@| v |@@%@%%
- _. .%%%@@@|% | % @@@%%@%%%%
- ______\||-_______-_.%%%%%%@@@@@@%%_/%\_%@@%%@@@@@@@%%%%%%""")
- gravestoneSeedling = ("""
- _____ _____
- < `/ |
- > (
- | _ _ |
- | |_) | |_) |
- | | \ | | |
- | |
- ______.______%_| |__________ _____
- _/ \| |
- | J I M M Y M C G I M M I <
- |_____.-._________ ____/|___________|
- |* 1/6/2001 |
- | """+dmy+""" |
- | |
- | |
- | _ <
- |__/ |
- / `--. |
- _ %| |%
- |@\ |/.%%| -< @%%%
- \/ `\%`@| v |@@%@%%
- (\|| .%%%@@@|% | % @@@%%@%%%%
- ______\||-_______-_.%%%%%%@@@@@@%%_/%\_%@@%%@@@@@@@%%%%%%""")
- gravestonePlant = ("""
- .--.
- .'_\/_'.
- '. /\ .'
- "||"
- || /\
- /\ ||//\)
- (/\\||/
- ______\||/_______""")
- respect = 0
- def start():
- startPage = input("""
- __ ________________________ __
- _| |_
- | Respect Payer 420 |
- _| Type to continue |_
- __|________________________|__
- ( New ) ( Load )
- >""").lower().replace(" ", "")
- if startPage == "new":
- os.system('cls')
- newUser()
- elif startPage == "load":
- os.system('cls')
- loadUser()
- else:
- os.system('cls')
- start()
- def newUser():
- print ("""
- ~~ Give yourself a unique username ~~
- ~~ to save your progress for later ~~
- """)
- userInputName=input("\n Give yourself a name!\n >").strip().replace(",", ".")
- if userInputName == "":
- os.system('cls')
- print ("""
- ! You can't leave it blank !""")
- newUser()
- file = open("users.txt","r")
- line = file.readlines()
- for x in line:
- xsplit = x.split(",,")
- if userInputName == xsplit[0]:
- os.system('cls')
- print ("\n ! Someone already has this name !")
- newUser()
- userPassword=input("\n Give yourself a password!\n >").strip().replace(",", ".")
- if len(userPassword) <8:
- os.system('cls')
- print ("\n Your password should be at least 8 long")
- newUser()
- file = open("users.txt","a")
- file.write("\n"+userInputName+",,"+userPassword+",,1")
- file.close()
- os.system('cls')
- print (" Account created! \n .\n .\n Generating extensive story")
- time.sleep(4)
- os.system('cls')
- story1()
- def story1():
- print gravestone
- print ("""
- As per the last message, it is clear that the individual who carries a name
- which is depicted on the 'ascii art' which bears some degree of resemblance
- to a gravestone is aliven't.
- Thus, this individual may or may not deserve a certain level of respect.
- You will respect this person.
- """)
- pressF= input(str("\n Press f to pay respect\n >"))
- if pressF == "f":
- os.system('cls')
- print (" Good boy")
- zone0(False,1)
- else:
- os.system('cls')
- print (" Maybe you should try again")
- time.sleep(2)
- os.system('cls')
- story1()
- def loadUser():
- print ("""
- ~~ Type in your previously used name ~~
- ~~ and the password with that account ~~
- ~~ to load your prevoius product ~~
- """)
- userInputName=input("\n Type your name\n >").strip().replace(",", ".")
- userPassword=input("\n Type your password\n >").strip().replace(",", ".")
- def zone0(noDisrespect,respect):
- while respect<15:
- print (" respect payed: "+str(respect))
- pressF= input(str("\n Press f to pay respect\n >"))
- os.system('cls')
- if pressF == "f":
- respect+=1
- else:
- print (" Don't disrespect")
- print gravestoneSeed
- print ("""
- Your respect has brought life when there was only death
- A small seed has spurted from the ground
- You can respect in new ways now
- Use /help to respect in your old ways
- """)
- time.sleep(3)
- zone1(noDisrespect,respect)
- def zone1(noDisrespect,respect):
- while respect<100:
- if respect>=80:
- print " Almost there"
- print (" respect payed: "+str(respect))
- letter= chr(random.randint(97,122))
- pressLetter = input("\n press "+str(letter)+" to pay respect\n >")
- inputProcess(pressLetter,1,respect)
- os.system('cls')
- if pressLetter == letter:
- respect+=3
- elif noDisrespect == True:
- print (" Welcome back!\n")
- else:
- print (" Try harder.\n")
- print gravestoneSeedling
- print ("""
- A seed is now a seedling.
- """)
- def zone2(noDisrespect,respect):
- while respect<100:
- if respect>=80:
- print "Almost there"
- print (" respect payed: "+str(respect))
- letter= chr(random.randint(97,122))
- pressLetter = input("\n press "+str(letter)+" to pay respect\n >")
- inputProcess(pressLetter,1,respect)
- os.system('cls')
- if pressLetter == letter:
- respect+=3
- elif noDisrespect == True:
- print (" Welcome back!\n")
- else:
- print (" Try harder.\n")
- def inputProcess(userInput,zone,repect):
- if userInput.replace(" ","").lower() == "/help":
- commandHelp(zone,respect)
- elif userInput.replace(" ","").lower() == "/switch":
- switchRespectMode(zone,respect)
- def commandHelp(zone,respect):
- os.system('cls')
- print ("""
- Help:
- *Do /switch to change between methods of
- gaining respect
- *Do /save to save your progress to the file
- *Do /exit to save and go to menu
- """)
- print respect
- helpInput = input(" Type anything to contiue\n >")
- zone = {
- 1 : zone1(True,respect),
- }
- def switchRespectMode(zone,respect):
- if zone == 1:
- switchInput = input("\nPick a")
- start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement