From 1a2194d5666a6bf3a8b9b5434be932410bd0f0cc Mon Sep 17 00:00:00 2001 From: Luke Hubmayer-Werner Date: Wed, 4 Jan 2023 18:50:55 +1030 Subject: [PATCH] rejig time limits --- 2022/day24.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/2022/day24.py b/2022/day24.py index f02c8a5..fd192b8 100644 --- a/2022/day24.py +++ b/2022/day24.py @@ -53,7 +53,7 @@ def sim(lines): seen_states.add(triple) state_stack.append(triple) - best_time = 1_000_000 + best_time = 1000 goal = (width-1, height) # End position print('Moving from start to end') while state_stack: @@ -74,7 +74,7 @@ def sim(lines): p1 = best_time state_stack = [(width-1, height, best_time)] seen_states.clear() - best_time = 1_000_000 + best_time = 10_000 goal = (0, -1) # Starting position print('Moving from end to start') while state_stack: @@ -95,7 +95,7 @@ def sim(lines): state_stack = [(0,-1,best_time)] seen_states.clear() - best_time = 1_000_000 + best_time = 100_000 goal = (width-1, height) # End position print('Moving from start to end (2)') while state_stack: