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 6e61f00 commit 4f2193eCopy full SHA for 4f2193e
CircuitPython_Karel_The_Robot/karel/__init__.py
@@ -0,0 +1,3 @@
1
+# SPDX-FileCopyrightText: 2024 Tim Cocks for Adafruit Industries
2
+#
3
+# SPDX-License-Identifier: MIT
CircuitPython_Karel_The_Robot/karel/circuitpythonkarel.py
@@ -271,7 +271,7 @@ def turn_left():
271
272
def corner_is_blocked(corner_x, corner_y):
273
corner_loc = [corner_x, corner_y]
274
- if 0 > corner_loc[0] or 0 > corner_loc[1]:
+ if corner_loc[0] < 0 or corner_loc[1] < 0:
275
return True
276
277
if corner_loc[0] >= world.world_width or corner_loc[1] >= world.world_height:
0 commit comments