-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path10_02_clirpg.py
More file actions
26 lines (16 loc) · 1.04 KB
/
Copy path10_02_clirpg.py
File metadata and controls
26 lines (16 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Build a CLI RPG game following the instructions from the course.
# Ask the player for their name.
# Display a message that greets them and introduces them to the game world.
# Present them with a choice between two doors.
# If they choose the left door, they'll see an empty room.
# If they choose the right door, then they encounter a dragon.
# In both cases, they have the option to return to the previous room or interact further.
# When in the seemingly empty room, they can choose to look around. If they do so, they will find a sword. They can choose to take it or leave it.
# When encountering the dragon, they have the choice to fight it.
# If they have the sword from the other room, then they will be able to defeat it and win the game.
# If they don't have the sword, then they will be eaten by the dragon and lose the game.
name=input("enter your name: ")
print(f"welcome to the world of games {name}!")
print("choose a door: \n \t1. Left \n \t2. Right")
option=input("Enter the choise: ")
if(option == Left):;;