From e4a2e64781c36d942ddfe86c42409bfbfb2a1be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Wed, 11 Dec 2019 10:14:24 +0100 Subject: Fix output --- solutions/py/d11.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'solutions/py/d11.py') diff --git a/solutions/py/d11.py b/solutions/py/d11.py index d0b6094..e9b280c 100644 --- a/solutions/py/d11.py +++ b/solutions/py/d11.py @@ -19,9 +19,9 @@ def draw(colors, ship, direction): min_y = min(min_y, color[1]) max_y = max(max_y, color[1]) s = "" - for y in range(min_y-1, max_y+2): + for y in range(min_y, max_y+1): s += "\n" - for x in range(min_x-1, max_x+1): + for x in range(min_x, max_x+1): if (x,y) == ship: s += ship_c elif (x,y) in colors: -- cgit v1.2.1