-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path6. Find-Movie-Seat-Number.py
53 lines (45 loc) · 1.95 KB
/
6. Find-Movie-Seat-Number.py
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Find Seat to watch movie
print("welcome to Movie seat finder Game")
print()
user = input("how do you want to reach to the movie theatre \n"
"type 'B' to choose bike or type 'c' to cycle or type 'w' to walk: ").lower()
if user == "w":
print("the movie is ended. Game over")
elif user == "c":
print("the half movie is completed. Game over")
elif user == "b":
print()
traffic = input("you reached the traffic signal \n"
"type 'w' to wait for green signal or type 'b' to break the traffic signal: ").lower()
print()
if traffic == "b":
print("you caught by the police. Game over")
elif traffic == "w":
print("You reached movie theatre")
screen = input("which screen do you want to go type '1' or '2' or '3': ").lower()
if screen == '1':
print("you entered in wrong screen. Game over")
elif screen == '2':
light = input("you came inside hall type 'p' to turn on phone torch or 'l' to turn on light: ").lower()
if light == "l":
print("you beaten by people. Game over")
elif light == "p":
print("you found the seat number. You Won. Enjoy the Movie")
else:
print("you entered wrong screen. Game over")
# Output:
# Sample - 1
welcome to Movie seat finder Game
how do you want to reach to the movie theatre
type 'B' to choose bike or type 'c' to cycle or type 'w' to walk: w
you are late movie ended. Game over
# Sample - 2
welcome to Movie seat finder Game
how do you want to reach to the movie theatre
type 'B' to choose bike or type 'c' to cycle or type 'w' to walk: b
you reached the traffic signal
type 'w' to wait for green signal or type 'b' to break the traffic signal: w
You reached movie theatre
which screen do you want to go type '1' or '2' or '3': 2
you came inside hall type 'p' to turn on phone torch or 'l' to turn on light: p
you found the seat number. You Won. Enjoy the Movie