From ca4d3b189da7793ce8744246617c793c8640ce71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Tue, 17 Dec 2019 18:55:21 +0100 Subject: Fix SIG_*-resets --- solutions/py/d15.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'solutions/py/d15.py') diff --git a/solutions/py/d15.py b/solutions/py/d15.py index e1de236..b2a9b10 100644 --- a/solutions/py/d15.py +++ b/solutions/py/d15.py @@ -134,7 +134,6 @@ def pt2(input): print("invalid path") break c.input = direction - c.SIG_INPUT = False if c.SIG_OUTPUT: if c.output == 0: board[(cur_x, cur_y)] = "#" @@ -147,7 +146,6 @@ def pt2(input): else: break c.output = None - c.SIG_OUTPUT = False steps = 0 visited = set(oxygen) @@ -238,7 +236,6 @@ def visualize(input): print("invalid path") break c.input = direction - c.SIG_INPUT = False if c.SIG_OUTPUT: if c.output == 0: board[(cur_x, cur_y)] = "#" @@ -253,7 +250,6 @@ def visualize(input): time.sleep(0.005) print(draw(board, droid=(cur_x, cur_y))) c.output = None - c.SIG_OUTPUT = False get_path((0,0), oxygen, board, draw_search=True) -- cgit v1.2.1