GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — user -> player to match TR updates · realpython/materials@3d7ec5d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • embedded-python
    • simon_says.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎embedded-python/simon_says.py‎

Copy file name to clipboardExpand all lines: embedded-python/simon_says.py
+5-5Lines 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 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.