Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. import time
  2. import os
  3. dev = False
  4.  
  5. #Thing you might want later:
  6. # directory = os.getcwd()
  7. #gets current directory
  8.  
  9. # os.mkdir("folder name")
  10. #makes folder
  11.  
  12.  
  13.  
  14. def clear():
  15. os.system('cls')
  16. print("\t**************************")
  17. print("\t*** The Oregon Trail ***")
  18. print("\t**************************")
  19.  
  20. def pause():
  21. input("PRESS ANYTHING TO CONTINUE")
  22.  
  23. def startmenu():
  24. clear()
  25. print("""Many kinds of people travelled The Oregon Trail.\n1. Travel the Trail\n2. Exit\n3. Developer Tools""")
  26. print("What would you like to do? ")
  27. menuchoice = input()
  28. if menuchoice == "1":
  29. neworload()
  30. elif menuchoice == "2":
  31. exit()
  32. elif menuchoice == "3":
  33. devtools()
  34. exit()
  35. else:
  36. print("You have not entered a correct option, please try again.")
  37. pause()
  38. clear()
  39. startmenu()
  40.  
  41.  
  42. def devtools():
  43. clear()
  44. while dev == False:
  45. print("""May I politely ask that you leave if you're not the dev.\nSeriously.""")
  46. time.sleep(5)
  47. devpassword = input("Alright, 'dev', what's the password if you're the dev?\n")
  48. if devpassword == "test":
  49. print("Well done! It's you, dev!")
  50. dev == True
  51. devtools2()
  52. else:
  53. print("This isn't you, dev, is it?..\nGoing back to main menu...")
  54. time.sleep(5)
  55. startmenu()
  56.  
  57.  
  58. def devtools2():
  59. clear()
  60. print("Alright, pick a tool...")
  61. print("1. Run code")
  62. devmenuchoice = input()
  63. if devmenuchoice == "1":
  64. runcode()
  65. else:
  66. print("That is not a valid choice.")
  67. time.sleep(2)
  68. devtools2()
  69.  
  70. def runcode():
  71. clear()
  72. code = input("What code would you like to run? (do startmenu() to go back to menu)\n")
  73. exec(code)
  74. time.sleep(2)
  75. runcode()
  76.  
  77. def neworload():
  78. clear()
  79. newOrLoad = input("Would you like to:\n1. Create a new game save (overwriting current game progress)\n2. Load your last game\n")
  80. if newOrLoad == "1":
  81.  
  82.  
  83. def savechoose():
  84. 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))
  85. saveused = input()
  86. if saveused == "1":
  87. print("Loading save...")
  88.  
  89.  
  90. def careerchoice():
  91. 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")
  92.  
  93.  
  94.  
  95. startmenu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement