0% found this document useful (0 votes)
24 views5 pages

Python Adventure Game: Treasure Quest

Uploaded by

nsnhemachena
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views5 pages

Python Adventure Game: Treasure Quest

Uploaded by

nsnhemachena
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

print('''

**************************************************************************
*****
| | | |
_________|________________.=""_;=.______________|_____________________|
_______
| | ,-"_,="" `"=.| |
|___________________|__"=._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]
**************************************************************************
*****
''')

print("Welcome to Treasure Island.")


print("Your mission is to find the treasure")

# First choice: Left or Right?


choice1 = input('You\'re on a crossroad, where do you want to go? Type
"Left" or "Right".\n').lower()

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!")

name = input("Enter Your Name : ")


print("Greetings, " + name + "\n###Let's Start the Game###")

print("""\nAs you slowly regained consciousness, you found yourself in a


strange room bathed in an eerie glow.
There are three imposing doors, each beckoning you towards a different
path.
Which door would you choose---1, 2 or 3???""")

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")

answer_yes = ["Yes", "Y", "yes", "y"]


answer_no = ["No", "N", "no", "n"]

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.

Will you provide shelter to him. (Yes / No)


""")

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")

elif ans2 in answer_no:


print("\nYou helped a thief. Now, go to Jail. GAME OVER")

else:
print("\nYou typed the wrong input. GOODBYE!")

elif ans1 in answer_no:


print("\nNow, he is trying to kill you. Will, you knock him down? (Yes / No)\n")

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!")

Common questions

Powered by AI

The game employs different environments—an ancient battlefield, jungle, and witch's cabin—to set unique challenges that shape player decisions and narrative pathways. In the battlefield, players can interact with remnants of the past affecting their storyline. In the jungle, the environment poses survival challenges like wild animals, hunger, and poison risks. The witch's cabin introduces supernatural threats, forcing moral and strategic decisions. These environments contribute to a dynamic narrative, guiding players' choices through immersive and varied contexts .

Each setting—be it a historical battlefield, an enigmatic jungle, or a witch's domain—creates a backdrop for exploring themes of choice and consequence. Historical settings pose questions of altering versus preserving history, impacting moral and temporal outcomes. The jungle presents survival and exploration themes, emphasizing decisions that balance risk against reward. The witch's domain engages with themes of power and morality, testing players' ethical boundaries. These varied settings enhance thematic depth by framing choices within diverse contexts, thereby reinforcing the interplay between choice and consequence .

The game design employs branching narratives and ethical dilemmas to promote critical thinking and decision-making skills. Players face complex choices with varied outcomes, such as whether to fight in a historical battle, follow or ignore a map in the jungle, or confront a witch. These scenarios require analysis of potential consequences, weighing short-term gains against long-term outcomes. This framework incentivizes thoughtful decision-making and problem-solving, fostering skill development in risk assessment and ethical evaluation .

The game utilizes suspenseful narrative techniques, such as cliffhanger moments and branching storylines, to captivate players. Suspense is maintained through uncertain outcomes of critical choices, like deciding whether to assist a fleeing man or venture into unknown environments. Each choice leads to varied narrative branches, keeping players engaged by offering new discoveries or dangers. Additionally, immersive settings like ancient battles and mystical cabins enhance suspense, encouraging exploration and strategic thinking .

Survival serves as a central theme across various scenarios, driving the player's decisions and shaping narrative outcomes. Whether in historical battles, untamed jungles, or facing mystical foes, players confront life-or-death situations requiring strategic choices. Themes of perseverance and adapting to circumstances are echoed in the necessity to evaluate risks, whether it's battling in a war or surviving in the wild. This thematic focus on survival underscores the interactive nature of storytelling, engaging players in the constant evaluation of choices for self-preservation .

Time travel in the game serves as a mechanism for exploring historical events and creating branching possibilities based on player actions. It allows players to experience the Battle of Spartans, faced with decisions that could alter history, like fighting or maintaining the timeline's integrity by witnessing the war without interference. These decisions impact the player's fate, illustrating time travel's function as a narrative device to deepen gameplay complexity and moral questioning of altering history versus surviving .

The choice of doors is pivotal in determining the outcome of the game. Choosing the first door leads players into a historical battle scene where their actions can result in various endings, such as dying, staying in the past, or witnessing history and returning to the present. The second door takes players to a jungle with an ancient map, where they may end up dead from wild animals or berries, or win by discovering a treasure. The third door leads to a witch who presents options that can either result in the player's death or grant freedom with a negative consequence .

Helping the running man by offering him shelter leads to different outcomes based on the player's response to the police. If the player reveals his whereabouts to the police, they are rewarded for honesty. Conversely, if the player denies knowing him, they help a thief and face jail time. Refusing to help the man initially puts the player in a dangerous situation, where the choice to confront him can result in capturing him, whereas hesitating leads to being killed by the thief .

Player morality is integral to defining narrative outcomes, as decisions are often moral in nature with consequences reflecting ethical judgments. With scenarios such as sparing versus attacking characters, players' moral compass influences paths and endings. For instance, aiding a thief or not impacts legal and ethical consequences, while actions in mystical and historical settings challenge principles of right and wrong. These moral decisions guide the narrative flow, ensuring outcomes resonate with the player's internal ethical standards, thus personalizing the gaming experience .

Fighting in the ancient battle raises ethical questions related to altering historical events and the player's survival instincts. Choosing to fight aligns the player with the Spartans, impacting the timeline and potentially the player's moral standing as they assume an active role in history. Conversely, avoiding combat maintains historical accuracy, preserving the timeline yet reflecting a passive moral choice, potentially seen as shirking duty. These options highlight the moral complexity of intervening in versus observing historical events .

You might also like