diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2022-12-14 13:47:16 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2022-12-14 13:47:16 +0000 |
commit | 4246099f07ce2c5ccf2503a2c45ce24e55f96445 (patch) | |
tree | 0f5dfdb0a8bcd51777e2284bcfa5a0d95e4146bc | |
parent | 2a3f9398942c2fd1ed199bb917e28d7dac8f6856 (diff) | |
download | aoc2022-4246099f07ce2c5ccf2503a2c45ce24e55f96445.tar.gz aoc2022-4246099f07ce2c5ccf2503a2c45ce24e55f96445.tar.xz aoc2022-4246099f07ce2c5ccf2503a2c45ce24e55f96445.zip |
14 remove superfluous comparison
-rw-r--r-- | 14.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -41,7 +41,7 @@ class Sandbox: for units in count(): sandpos = self.source while self.minx <= sandpos[0] <= self.maxx and \ - self.miny <= sandpos[1] <= self.maxy and \ + sandpos[1] <= self.maxy and \ self.source not in self.tiles: for dx in (0, -1, 1): npos = sandpos[0] + dx, sandpos[1] + 1 |