From 91907866ece9b098a09b6ac3de499a79168797aa Mon Sep 17 00:00:00 2001 From: Akuli Date: Mon, 11 Dec 2023 19:52:08 +0200 Subject: [PATCH] remove some variables --- examples/aoc2023/day10/part1.jou | 1 - examples/aoc2023/day10/part2.jou | 1 - 2 files changed, 2 deletions(-) diff --git a/examples/aoc2023/day10/part1.jou b/examples/aoc2023/day10/part1.jou index 1519355d..5cf3106c 100644 --- a/examples/aoc2023/day10/part1.jou +++ b/examples/aoc2023/day10/part1.jou @@ -54,7 +54,6 @@ def find_initial_direction(input: Input*, S: int[2]) -> int[2]: directions = [[0,1], [0,-1], [1,0], [-1,0]] for d = &directions[0]; d < &directions[4]; d++: S_to_neighbor = *d - neighbor_to_S = [-S_to_neighbor[0], -S_to_neighbor[1]] neighbor = [S[0] + S_to_neighbor[0], S[1] + S_to_neighbor[1]] if input->is_in_bounds(neighbor) and input->get(neighbor) != '.': diff --git a/examples/aoc2023/day10/part2.jou b/examples/aoc2023/day10/part2.jou index 6346464a..1319c025 100644 --- a/examples/aoc2023/day10/part2.jou +++ b/examples/aoc2023/day10/part2.jou @@ -55,7 +55,6 @@ def find_initial_direction(input: Input*, S: int[2]) -> int[2]: directions = [[0,1], [0,-1], [1,0], [-1,0]] for d = &directions[0]; d < &directions[4]; d++: S_to_neighbor = *d - neighbor_to_S = [-S_to_neighbor[0], -S_to_neighbor[1]] neighbor = [S[0] + S_to_neighbor[0], S[1] + S_to_neighbor[1]] if input->is_in_bounds(neighbor) and input->get(neighbor) != '.':