adventofcode2023/day17
magical fe76e83e98 day 17 fix cost calculation
i was accidentally using the previous coordinates to calculate the cost
for each node, which means the A* search was effectively calculating the
cost of the return trip instead of the forward path.
doesn't affect the path at all - the start and end nodes are fixed, so
it doesn't matter whether their costs are included or not - but it does
mean that the cost being returned at the end was off by ((value at end
point) - (value at start point)) compared to the expected value.
2023-12-17 06:42:34 +00:00
..
astar.py day 17 solution 2023-12-17 06:26:31 +00:00
input day 17 solution 2023-12-17 06:26:31 +00:00
sample1.in day 17 solution 2023-12-17 06:26:31 +00:00
sol.py day 17 fix cost calculation 2023-12-17 06:42:34 +00:00