Skip to content

Instantly share code, notes, and snippets.

@SANTOSHSHARMA11
Created December 14, 2019 12:48
Show Gist options
  • Save SANTOSHSHARMA11/afcd2905ca3dc3ae06f7c2d2905e5ed7 to your computer and use it in GitHub Desktop.
Save SANTOSHSHARMA11/afcd2905ca3dc3ae06f7c2d2905e5ed7 to your computer and use it in GitHub Desktop.
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 πŸ₯±πŸ₯±")
@SANTOSHSHARMA11
Copy link
Author

Its a small car game it do not contain graphicall UI but its fun
do play and enjoy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment