Skip to content

Commit 3d7ec5d

Browse files
committed
user -> player to match TR updates
1 parent 47717f9 commit 3d7ec5d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

embedded-python/simon_says.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
acc_x = accelerometer.get_x()
1818
# Determine direction
1919
if acc_x < -200:
20-
user_in = "L"
20+
player_in = "L"
2121
elif abs(acc_x) < 200:
22-
user_in = "O"
22+
player_in = "O"
2323
elif acc_x > 200:
24-
user_in = "R"
24+
player_in = "R"
2525

2626
# Check win condition
27-
if user_in == direction:
28-
# User input correctly
27+
if player_in == direction:
28+
# Player input correctly
2929
points += 1
3030
else:
3131
display.scroll(points)

0 commit comments

Comments
 (0)