diff options
Diffstat (limited to 'cameltris.py')
-rwxr-xr-x | cameltris.py | 3 |
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 |