Python - 26
Python - 26: Building a Text Adventure Game
Let's build a simple text adventure using choices, conditions, and variables.
👀 Show Example Solution
print("Space Adventure")
name = input("Pilot name: ")
print("Welcome Captain " + name)
planet = input("Land on Mars or Moon? ")
if planet == "Mars":
print("You found alien ruins!")
elif planet == "Moon":
print("You discovered hidden crystals!")
else:
print("You drift through space.")
print("Mission Complete!")