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 a2e7224 commit e346383Copy full SHA for e346383
Metro/Metro_RP2350_Snake/snake_helpers.py
@@ -279,7 +279,7 @@ def __init__(self, speed):
279
:param speed: speed as a value 0-20, lower is faster.
280
"""
281
# limit speed to the range 0-20
282
- if 0 > speed or speed > 20:
+ if speed < 0 or speed > 20:
283
raise ValueError("Speed must be between 0 and 20")
284
285
# store speed value on self
@@ -348,6 +348,3 @@ class GameOverException(Exception):
348
Exception that indicates the game is over.
349
Message will contain the reason.
350
351
-
352
- def __init__(self, message):
353
- super().__init__(message)
0 commit comments