summaryrefslogtreecommitdiff
path: root/cameltris.py
diff options
context:
space:
mode:
Diffstat (limited to 'cameltris.py')
-rwxr-xr-xcameltris.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cameltris.py b/cameltris.py
index b0c78e1..60f8aee 100755
--- a/cameltris.py
+++ b/cameltris.py
@@ -109,6 +109,9 @@ def has_collision(y: int, x: int) -> bool:
if element is None:
continue
+ if row_id + y < 0:
+ continue
+
if col_id + x < 0:
return True