forked from abdallauno1/python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcar_game.py
38 lines (30 loc) · 926 Bytes
/
car_game.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
command = ""
started = False
stopped = True
while True:
command = input("> ").lower()
if (command == 'help'):
print("""
Start - to start the car
Stop - to stop the car
quit - to exit the program
""")
elif (command == 'start'):
if started:
print("Car already started ...")
else:
started = True
print("Car start to gooo....")
elif (command == 'stop'):
if started == True:
started = False
print("Car Stopped !")
else:
print("Car already Stopped...!")
elif (command == 'quit'):
print("Program quiting....!")
exit()
break
else:
print("I do not undersatand this...")
#Cameron was here, testing a push