Skip to content

Instantly share code, notes, and snippets.

@lesp
Created April 28, 2016 12:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lesp/3c629351cce9384367625fc1dbc5834e to your computer and use it in GitHub Desktop.
checking the sequence against the users choice
if lights == player:
print("CORRECT")
correct(0.1)
for i in range(150):
strip.setPixelColor(i,Color(0,0,0))
strip.show()
else:
print("WRONG ANSWER McFLY")
wrong(0.1)
for i in range(150):
strip.setPixelColor(i,Color(0,0,0))
strip.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment