forked from kartikeysingh6/kartik_python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbus_game.py
More file actions
22 lines (21 loc) · 1.02 KB
/
bus_game.py
File metadata and controls
22 lines (21 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
print("Type 'help' in the command line to briefly understand the game")
command=""
while True:
command=input(">").lower()
if command =="start":
print("Bus started, ready to go ------> |----------|")
print(" | | ")
print(" |----------| ")
print(" o o o o ")
elif command=="stop":
print("Bus stopped, |----------|")
print(" | | ")
print(" |----------| ")
print(" o o o o ")
elif command=="help":
print("start=to start the Bus,\nstop=to stop the Bus,\nquit=to quit the game.")
elif command=="quit":
print("Thanks for playing,We hope you return back here soon.")
break
else:
print("Sorry,i didn't understand ...\nPLEASE TRY AGAIN.")