From 4246099f07ce2c5ccf2503a2c45ce24e55f96445 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Wed, 14 Dec 2022 13:47:16 +0000 Subject: 14 remove superfluous comparison --- 14.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf