Python Adventure Game
Python Adventure Game
**************************************************************************
*****
| | | |
_________|________________.=""_;=.______________|_____________________|
_______
| | ,-"_,="" `"=.| |
|___________________|__"=._o`"-._ `"=.______________|
___________________
| `"=._o`"=._ _`"=._ |
_________|_____________________:=._o "=._."_.-="'"=.__________________|
_______
| | __.--" , ; `"=._o." ,-"""-._ ". |
|___________________|_._" ,. .` ` `` , `"-._"-._ ". '__|
___________________
| |o`"=._` , "` `; .". , "-._"-._; ; |
_________|___________| ;`-.o`"=._; ." ` '`."\\` . "-._ /_______________|
_______
| | |o; `"-.o`"=._`` '` " ,__.--o; |
|___________________|_| ; (#) `-.o `"=.`_.--"_o.-; ;___|
___________________
____/______/______/___|o;._ " `".o|
o_.--" ;o;____/______/______/____
/______/______/______/_"=._o--._ ; | ; ;
;/______/______/______/_
____/______/______/______/__"=._o--._ ;o|o;
_._;o;____/______/______/____
/______/______/______/______/____"=._o._;
| ;_.--"o.--"_/______/______/______/_
____/______/______/______/______/_____"=.o|o_.--""___/______/______/
______/____
/______/______/______/______/______/______/______/______/______/______/
[TomekK]
**************************************************************************
*****
''')
if choice1 == "left":
# Continue the game
choice2 = input('You\'ve come to a lake. There is an island inside the
lake. Type "Wait" to wait for a boat. Type "Swim" to swim across.\
n').lower()
if choice2 == "wait":
# Continue the game
choice3 = input("You've arrived at the island unharmed. There is a
house with 3 doors. One red, one yellow, and one blue. Which one do you
choose?\n").lower()
if choice3 == "red":
print("You get burned by fire. Game over!")
elif choice3 == "yellow":
print("Cool anjing. You win, puh sepuh!")
elif choice3 == "blue":
print("Oops! You got eaten by a monster babi. Game Over!")
else:
print("You chose a door that doesn't exist. Game over!")
else:
print("Something terrible happens. Game over!")
else:
print("Oh no! You've fallen into a hole. Game over!")
door = input(">")
if(door == "1"):
print("You entered the First room and through time travelling you
found yourself in a an ancient Battle")
print("By looking at the Flag of an Empire you come to knw that\nIt is
the battle of Spartans")
print("You hide in the bush and finds a Sword lying on the ground")
print("What would you do???")
print("1-Pick the Sword and Run from the Battleground")
print("2-Pick the Sword and Fight for your life")
print("3-Leave it and come back to Present time without altering the
timeline")
options = input(">")
if(options == "1"):
print("As you started running\nomeone from back hit you with the
Arrow!\nBoom!!!You are dead.")
elif(options == "2"):
print("You started fighting from the spartans side, \nluckily you
survived the battlefield and lived the rest of the life as a commander in
the Army\nYou stucked in the past for the rest of your life")
elif(options == "3"):
print("You leaved the sword in its place and witnessed the ancient
war.\nCame back to present time\nWith the memories of the huge
Battlefield, which you can't share with anyone.\n###You Won the Game###")
else:
print("Type a Number!!!\nGAME OVER\nPLEASE RESTART the GAME")
if(door == "2"):
print("You entered the Second room and found yourself in a remote
jungle with an ancient map beside you")
print("The Map contains a route leading to a treasure hidden in the
forest")
print('What would you do???')
print("1-Wait for the help.")
print("2-Find for an exit on on your own.")
print("3-Take the Map.")
forest = input(">")
if(forest == "1"):
print("No one was there to help you.\nYou hide from the wild
animals for a while.\nGets killed by the Wolf in the End")
elif(forest == "2"):
print("You look for an exit in jungle on your own.\nIn the pain of
hunger you ate poisoned berries.\nGood job! You Died!!!")
elif(forest == "3"):
print("You followed the Map, discovered some beautiful sceneries
of deep forest.\nFinally reached the treasure chest.\nYou opened the chest
but it was empty")
print("You get disappointed\nAfter walking for a while.\nYou saw a
river and sat near the river and relaxed.\n###You Won the Game###")
else:
print("Type a Number!!!\nGAME OVER\nPLEASE RESTART the GAME")
if (door == "3"):
print("You entered the Third room and found yourself in front of a
Witch brewing Potions")
print("She ask-What are you doing here young boy?")
print("What will you answer-")
print("1-You tell her that you're lost, and want to get out of here.")
print("2-You stab her with a knife.")
print("3-You try to runway.")
witch = input(">")
if(witch == "1"):
print("She cast a spell on you and you become unconscious.")
print("She brewed you into her potion")
print("Good bye! You Died")
elif(witch == "2"):
print("You come close to her and swing your knife at her face and
then stab her to death.")
print("Good job. You are free now.\nWith a tag of Murderer!!!\
n###But You Won the Game###")
elif(witch == "3"):
print("She casts a spell that freezes you in place.")
print("She prisoned you in her cabin.")
print("Good job! You became her slave for the rest of your life.")
else:
print("Type a Number!!!\nGAME OVER\nPLEASE RESTART the GAME")
print("""
WELCOME! LET'S START THE ADVENTURE
You are standing outside of your house and you see a man running towards you and
asking for urgent shelter.
ans1 = input(">>")
if ans1 in answer_yes:
print("\nAfter 2 minutes, the Police came to your house, and ask you that
whether the thief is in your house or not. Will you say (Yes / No)\n")
ans2 = input(">>")
if ans2 in answer_yes:
print("\nYou are an honest person. He was a thief & You won the Game")
else:
print("\nYou typed the wrong input. GOODBYE!")
ans3 = input(">>")
if ans3 in answer_yes:
print("\nCongrats! He was a thief & You helped the police to catch him
with your bravery.")
elif ans3 in answer_no:
print("\nSorry! You are dead. He was a thief & He killed you. GAME
OVER")
else:
print("\nYou typed the wrong input. GOODBYE!")
else:
print("\nYou typed the wrong input. GOODBYE!")