Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##Game: Grounded
- ##Storyline
- print("Hi Jafari, my name is Penny and I will be your game guide. The aim of this game is get you back safely to your house.")
- print("")
- print("")
- print('''Last night you were shrunk to a very very small size (size of grass hopper). And you were beamed to the rear end of your backyard. You are now 100mm away from home.
- Yes I know!!! That's a fancy backyard you got pal. You were a rich kid with a huge backyard.
- That was great for you when you were a full size pampered kid who was born with a silver spoon. Not so lucky for this tiny human that you are now. Hahaha.
- With these tiny legs it will take you one whole day to get to your house where you have the machine that can return you back to your normal size.
- Danger is imminent. You can get eaten by almost everything.''')
- print("")
- print("")
- print("Here are some helpful information")
- print('''The sun sets in 8h and it's impossible to survive in the dark.
- ---Walking to your house in a straight line will take you 8h.
- ---You run twice as fast as you walk (not exaclty Usain Bolt huh!!)
- ---However you only have stamina to run for 1h at a time
- ---After running for 2h you need to drink or else you faint
- ---You can walk for 8h without drinking
- ---A weapon can protect you agains any predator''')
- print("<----------------------------------------------------------------------------------------------------------------------------------------------------->")
- print("")
- print("Your time starts now...")
- print('***********Good Luck Jafari***************')
- print('PS: Feel free to NOT contact me if you need me')
- print("")
- ##Start with an empty backpack
- backpack = ('')
- ##Solution for the game is in this sequence ( weapon--> water -->run )
- ## save reply of user in answer
- answer = input('''You are 30min walking distance from the closest water source and also 45min from the closest weapon. They are in two different direction.
- What is your priority? (water/weapon)''')
- ##Starts the if, else statement of the game
- if answer.lower().strip() == 'weapon':
- answer = input("What's your next priority? (house/water)")
- if answer.lower().strip() == 'water':
- answer= input("Do you run or walk to the water source? (run/walk)")
- if answer.lower().strip() == 'run':
- print("Good job Jafari. Well done :)")
- else:
- print ("This is no walk in the park. You are surrounded by deadly animals. Game over.")
- else:
- print ("Good luck reaching your house without fainting due to dehydration. Game over")
- elif answer.lower().strip() == 'water':
- print("Sorry dude. You were eaten by a cockroach on the way to quenching your thirst. Game over")
- else:
- print("Invalid choice")
Add Comment
Please, Sign In to add comment