Created
December 14, 2019 12:48
-
-
Save SANTOSHSHARMA11/afcd2905ca3dc3ae06f7c2d2905e5ed7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def GAME(): | |
i = 0 | |
started = False | |
st = False | |
while i < 10: | |
a = input('>') | |
if a == 'HELP' or a == 'help': | |
print("START:- Start the car \n STOP :- Stop the car \n END :- To end the race") | |
elif a == 'START' or a == 'start': | |
if started: | |
print("YOU MORON ENGINE IS ALREADY STARTED .π π π π π π π π π π π π ") | |
else: | |
started = True | |
print("Car started!!! READY TO GO π π π π π π π π π π") | |
elif a == 'STOP' or a == 'stop': | |
if st: | |
print("KEY IS ALREADY EJECTED π‘π‘π π π π π π π π π ") | |
else: | |
st = True | |
print("Car stoped!!! READY for refuling π π π π π π π π π π") | |
elif a == 'END' or a == 'end': | |
print("Race ended!!! π π π π π π π π π π") | |
break | |
else: | |
print("You idiot ENTER CORRECT COMMANDπ€¬π€¬π€¬") | |
i += 1 | |
GAME() | |
a=input("Press R (Retry) and N (NO):-") | |
print("YUhuuuuuuuuuu !!!!!!!!!!!!! Game begainsπ΅") | |
if a == 'R' or a == 'r': | |
GAME() | |
elif a == 'N' or a == 'n': | |
print("Thank's for Playing !!!SEE you soon π₯±π₯±") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Its a small car game it do not contain graphicall UI but its fun
do play and enjoy