diff --git a/2024/day6/main.py b/2024/day6/main.py index e18361f..1507fa0 100644 --- a/2024/day6/main.py +++ b/2024/day6/main.py @@ -91,28 +91,13 @@ for i, place in enumerate(been): guard.pos = starting_pos guard.dir = Vector(0, -1) - # hit_new_ob_pos = None - # hit_new_ob_dir = None - steps = 0 while True: ob = guard.move(temp_obstacles) if type(ob) == Vector: - # if ob == place and not hit_new_ob_pos: - # hit_new_ob_pos = guard.pos - # hit_new_ob_dir = guard.dir - - # elif hit_new_ob_dir and hit_new_ob_pos: - # if guard.pos == hit_new_ob_pos and guard.dir == hit_new_ob_dir: - # total += 1 - # break - guard.turn() - - # guard.turn() - elif type(ob) == int: break else: