Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import os
- dev = False
- #Thing you might want later:
- # directory = os.getcwd()
- #gets current directory
- # os.mkdir("folder name")
- #makes folder
- def clear():
- os.system('cls')
- print("\t**************************")
- print("\t*** The Oregon Trail ***")
- print("\t**************************")
- def pause():
- input("PRESS ANYTHING TO CONTINUE")
- def startmenu():
- clear()
- print("""Many kinds of people travelled The Oregon Trail.\n1. Travel the Trail\n2. Exit\n3. Developer Tools""")
- print("What would you like to do? ")
- menuchoice = input()
- if menuchoice == "1":
- neworload()
- elif menuchoice == "2":
- exit()
- elif menuchoice == "3":
- devtools()
- exit()
- else:
- print("You have not entered a correct option, please try again.")
- pause()
- clear()
- startmenu()
- def devtools():
- clear()
- while dev == False:
- print("""May I politely ask that you leave if you're not the dev.\nSeriously.""")
- time.sleep(5)
- devpassword = input("Alright, 'dev', what's the password if you're the dev?\n")
- if devpassword == "test":
- print("Well done! It's you, dev!")
- dev == True
- devtools2()
- else:
- print("This isn't you, dev, is it?..\nGoing back to main menu...")
- time.sleep(5)
- startmenu()
- def devtools2():
- clear()
- print("Alright, pick a tool...")
- print("1. Run code")
- devmenuchoice = input()
- if devmenuchoice == "1":
- runcode()
- else:
- print("That is not a valid choice.")
- time.sleep(2)
- devtools2()
- def runcode():
- clear()
- code = input("What code would you like to run? (do startmenu() to go back to menu)\n")
- exec(code)
- time.sleep(2)
- runcode()
- def neworload():
- clear()
- newOrLoad = input("Would you like to:\n1. Create a new game save (overwriting current game progress)\n2. Load your last game\n")
- if newOrLoad == "1":
- def savechoose():
- print("What save game would you like to use?\n\n1. %s's save game\n2. %s's save game\n3. %s's save game" % (saveOne, saveTwo, saveThree))
- saveused = input()
- if saveused == "1":
- print("Loading save...")
- def careerchoice():
- print("Many kinds of people made the trip to Oregon.\n\nYou may:\n1. Be a banker from Boston\n2. Be a carpenter from Ohio\n3. Be a farmer from Illinois\n4. Find out the differences between these choices")
- startmenu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement