From 2a3f9398942c2fd1ed199bb917e28d7dac8f6856 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Wed, 14 Dec 2022 13:40:14 +0000 Subject: 14 use source when positioning floor --- 14.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- cgit v1.2.3-54-g00ecf