summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2022-12-14 13:47:16 +0000
committerTomasz Kramkowski <tomasz@kramkow.ski>2022-12-14 13:47:16 +0000
commit4246099f07ce2c5ccf2503a2c45ce24e55f96445 (patch)
tree0f5dfdb0a8bcd51777e2284bcfa5a0d95e4146bc
parent2a3f9398942c2fd1ed199bb917e28d7dac8f6856 (diff)
downloadaoc2022-4246099f07ce2c5ccf2503a2c45ce24e55f96445.tar.gz
aoc2022-4246099f07ce2c5ccf2503a2c45ce24e55f96445.tar.xz
aoc2022-4246099f07ce2c5ccf2503a2c45ce24e55f96445.zip
14 remove superfluous comparison
-rw-r--r--14.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/14.py b/14.py
index 57b94a0..45aaae4 100644
--- a/14.py
+++ b/14.py
@@ -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