Skip to content

Commit

Permalink
remove some variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Dec 11, 2023
1 parent 7b7f8bf commit 9190786
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/aoc2023/day10/part1.jou
Original file line number Diff line number Diff line change
Expand Up @@ -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) != '.':
Expand Down
1 change: 0 additions & 1 deletion examples/aoc2023/day10/part2.jou
Original file line number Diff line number Diff line change
Expand Up @@ -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) != '.':
Expand Down

0 comments on commit 9190786

Please sign in to comment.