summaryrefslogtreecommitdiffstats
path: root/14.py
diff options
context:
space:
mode:
Diffstat (limited to '14.py')
-rw-r--r--14.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/14.py b/14.py
index fa81fec..57b94a0 100644
--- a/14.py
+++ b/14.py
@@ -71,7 +71,7 @@ print(p1)
floory = sandbox.maxy + 2
height = floory - sandbox.source[1]
-for x in range(500 - height, 500 + height + 1):
+for x in range(sandbox.source[0] - height, sandbox.source[0] + height + 1):
sandbox[x, floory] = Tile.WALL
print(p1 + sandbox.simulate())