Day 17: Clumsy Crucible [AOC2023 Python] @0xdf
Day 17: Clumsy Crucible [AOC2023 Python]  @0xdf
Uploaded December 2023 | Updated November 2026, 2 hours ago
For Advent of Code 2023 Day 17, I get a grid of values showing the heat gained moving through each space. I'll have to traverse from the top left to the bottom right gaining as little heat as possible. In part one, I can only go straight 3 times before I have to turn. In part two, I have to go straight at least 4 times, but not more than 10. I'll use some Dijkstra-like logic with a heapq to move through the grid in order of lowest heat total.

Code 2023 AOC: gitlab.com/0xdf/aoc2023
Challenge Link: adventofcode.com/2023/day/10
heapq: docs.python.org/3/library/heapq.html
Dijkstra's Algorithm: en.wikipedia.org/wiki/Dijkstra%27s_algorithm

☕ Buy Me A Coffee: buymeacoffee.com/0xdf

[00:00] Part 1 description
[01:15] Strategy preview
[01:31] Input fetch and analysis
[02:13] heapq
[04:24] Initialize grid
[05:57] Process queue
[11:36] Solve part 1
[11:52] Part 2 description
[12:12] Refactoring part 1 to part 2
[13:42] Debugging starting dr/dc error
[15:07] Solving part 2 ex.txt
[15:30] Other example fail
[15:56] Solve part 2
[16:08] Summary

#adventofcode #python
Day 17: Clumsy Crucible [AOC2023 Python]Creating a SSH Honeypot with PythonLinen Layout [Day 19 - Advent of Code 2024 - Python]Race Condition [Day 20 - Advent of Code 2024 - Python]Brute-Forcing File Read with MD5s [HackTheBox Intentions]Digging into OFBiz ExploitationAdvent of Code 2025 - PreviewDay 8: Haunted Wasteland [AOC2023 Python]Historian Hysteria [Day 1 - Advent of Code 2024 - Python]Plutonian Pebbles [Day 11 - Advent of Code 2024 - Python]State of 0xdf (2026)Day 19: Aplenty [AOC2023 Python]
0xdf |

Day 17: Clumsy Crucible [AOC2023 Python]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER