Day 17 - Two Steps Forward [Revival of Code 2023 - Advent of Code 2016]

Опубликовано: 08 Март 2026
на канале: 0xdf
216
8

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 17 challenge, Two Steps Forward, involves taking an MD5 hash of the path taken so far with a salt to determine which direction I can move next, trying to find both the shortest and longest path through a maze.

Repo for Advent of Code 2016 Solutions: https://gitlab.com/0xdf/aoc2016
Intro video for this event:    • Introduction [Revival of Code 2023 - Adven...  
Configuring VSCode to debug PyTest:    • Configuring VSCode to Debug PyTest  
Real Python post with templates: https://realpython.com/python-advent-...

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

[00:00] Introduction
[00:16] Challenge part 1
[02:22] genday.sh / input
[02:33] Tests for doors_open
[05:17] doors_open function
[07:03] Debugging typos
[08:28] Part 1 solve tests
[09:53] Solve with BFS
[13:24] Cleaning up template and solving
[13:59] Challenge part 2
[14:17] Refactor part 1
[15:38] Test for part 2
[17:08] Part 2 solve
[18:05] Conclusion

#ctf #adventofcode #revivalofcode #python