Text Based Adventure Game Project in Python
Text Based Adventure Game Project in Python
Note : Recplace (greater than) and (less than) with their sign/symbol ( Because Youtube donot allow angle brackets in description ) OR You can get this code on github by using github link
Code github Link : https://github.com/ubaidahmadceh/python_projects/blob/main/Text_Based_Adventure_Game.py
code :
print("Welcome to tresure Island")
print("Your mission is to Find the Treasure")
Choice_1 = input("You are at a crossroad, where do you want to go? Type 'left' or 'right'.\n").lower()
if Choice_1 == "left":
Choice_2 = input("you have come to a lake, There is an island in the middle of the lake. Type 'wait' to wait for a boat. Type 'swim' to swim across. \n").lower()
if Choice_2 == "wait":
choice_3 = input("You arrive at the island unharmed. There is a house With 3 doors. One red, one yellow and one blue.\n Which color do you choose?\n").lower()
if choice_3 == "red":
print("It is a room full of fire. Game Over.")
elif choice_3 == "yellow":
print("You found the treasure! You Win!")
elif choice_3 == "blue":
print("You enter a room of beasts. Game Over.")
else:
print("You chose a door that doesn't exist. Game Over.")
else:
print("You got attacked by angry lion. Game Over.")
else:
print("You fell into a hole. Game Over.")
how to make a text adventure game in python,adventure game python code,choose your own adventure game,how to make a game in python for beginners,text-based game,beginner-friendly programming project,programming project,beginner-friendly python project,simple python project,python project,input validation,comp sci central,tech with tim,functions,time unraveled,python,boolean operators,simple python game code for beginners,programming,python game
Other Videos By UBprogrammer - Hindi
Other Statistics
To Make a Game Statistics For UBprogrammer - Hindi
There are 190 views in 1 video for To Make a Game. His channel published less than an hour of To Make a Game content, making up less than 0.33% of the total overall content on UBprogrammer - Hindi's YouTube channel.