Day 24 - Air Duct Spelunking [Revival of Code 2023 - Advent of Code 2016] @0xdf
Day 24 - Air Duct Spelunking [Revival of Code 2023 - Advent of Code 2016]  @0xdf
Uploaded August 2023 | Updated November 2026, 3 hours ago
Python Discord is doing an event called Revival of Code, where we work through the 2016 Advent of Code, one challenge every two days. The day 24 challenge, Air Duct Spelunking, involves walking a maze to collect targets. I'll use a BFS to try all paths to find the shortest. In part two, I just have to do the same, but also get back to start.

Repo for Advent of Code 2016 Solutions: gitlab.com/0xdf/aoc2016
Intro video for this event: youtube.com/watch?v=qEPpsS0StQI
Configuring VSCode to debug PyTest: youtube.com/watch?v=zL2YTdIj3R8
Real Python post with templates: realpython.com/python-advent-of-code

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

[00:00] Introduction
[00:16] Challenge part 1
[00:50] genday / input analysis
[01:26] Strategy
[02:34] Initial Maze class stub
[03:22] Test for part 1
[04:45] Maze __init__ to parse input
[07:38] Adding parsing tests
[09:45] Creating State class
[12:45] Doing BFS to solve
[17:00] Passing test, and solving
[18:36] Challenge part 2
[18:52] Updating tests for part 2
[19:51] Refactoring to get two answers from one BFS
[20:10] Updating BFS with part 2
[21:00] Passing tests, solving
[21:43] Animating maze walk
[22:48] Animation code review

#ctf #adventofcode #revivalofcode #python
Day 24 - Air Duct Spelunking [Revival of Code 2023 - Advent of Code 2016]Garden Groups [Day 12 - Advent of Code 2024 - Python]Debofuscate JavaScript with webcrack [Meme Maker 3000 - Flare-On 2024]Day 3 - Squares With Three Sides [Revival of Code 2023 - Advent of Code 2016]awk Injection via JWT Forgery [HackTheBox - Awkward]SpeedNet - HackTheSystem CTFsudo chroot Tech Details [CVE-2025-32463]Threat Index [HackTheBox - Coding Challenge]Day 23: Long Walk [AOC2023 Python]Day 8 - Two-Factor Authentication [Revival of Code 2023 - Advent of Code 2016]Reversing and Brute-Forcing TOPT Browser Plugin Export [HackTheBox Coder]Web Assembly Reversing Challenge [CodeLocked - Hacky Easter 2023]
0xdf |

Day 24 - Air Duct Spelunking [Revival of Code 2023 - Advent of Code 2016]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER