Skip to content

Commit 5b70cde

Browse files
committed
Clean up a few issues
1 parent aa4d640 commit 5b70cde

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

examples/gauntlet_game/main.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
blue = (0, 0, 64)
1515
player = (0, 255, 0)
1616

17-
row = (background, background, background, background, background, background, background, background, black, black, black, black, black, background, background, background, background, background, background, background, background)
17+
row = (background, background, background, background,
18+
background, background, background, background,
19+
black, black, black, black, black,
20+
background, background, background, background,
21+
background, background, background, background)
1822

1923

2024
def run():
@@ -47,7 +51,7 @@ def run():
4751

4852
under_player = wing.get_color(3, player_position_col)
4953
if under_player == background:
50-
return (steps, score)
54+
return steps, score
5155
elif under_player == blue:
5256
score += 1
5357

@@ -60,8 +64,8 @@ def run():
6064

6165
while True:
6266
result = run()
67+
# got here because of a crash, so report and restart
6368
print('Score: {} Steps: {}'.format(result[1], result[0]))
64-
# got here becasue of a crash
6569
wing.clear()
6670
wing.show()
6771
wing.fill((255, 0, 0))

0 commit comments

Comments
 (0)