We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47717f9 commit 3d7ec5dCopy full SHA for 3d7ec5d
embedded-python/simon_says.py
@@ -17,15 +17,15 @@
17
acc_x = accelerometer.get_x()
18
# Determine direction
19
if acc_x < -200:
20
- user_in = "L"
+ player_in = "L"
21
elif abs(acc_x) < 200:
22
- user_in = "O"
+ player_in = "O"
23
elif acc_x > 200:
24
- user_in = "R"
+ player_in = "R"
25
26
# Check win condition
27
- if user_in == direction:
28
- # User input correctly
+ if player_in == direction:
+ # Player input correctly
29
points += 1
30
else:
31
display.scroll(points)
0 commit comments