Day 10: Pipe Maze [AOC2023 Python] @0xdf
Day 10: Pipe Maze [AOC2023 Python]  @0xdf
Uploaded December 2023 | Updated November 2026, 3 hours ago
For Advent of Code 2023 Day 10, I get a map of pipes that includes a loop and a bunch of random pipes not a part of the loop. In part 1, I'll use a breadth first search to find all the pipes in the loop. In part 2, I'll use ray casting to find which spots are enclosed in the loop.

Code 2023 AOC: gitlab.com/0xdf/aoc2023
Challenge Link: adventofcode.com/2023/day/10
Ray casting algorithm: en.wikipedia.org/wiki/Point_in_polygon

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

[00:00] Part 1 description
[01:29] Input analysis
[02:08] Find start
[03:40] Find start type
[08:40] Update grid
[09:18] BFS
[11:30] get_valid_moves
[12:59] Debugging small issues
[14:20] Solve part 1
[14:35] Part 2 description
[16:19] Ray casting algorithm
[17:07] Removing non-loop items
[18:38] Walk each line
[22:30] Test cases
[23:24] Solve part 2
[23:32] Summary

#adventofcode #python
Day 10: Pipe Maze [AOC2023 Python]Jumpio Adventure [HTB Stack Smash CTF]Reversal [HackTheBox - Coding Challenge](More) AWS CLI [Sans Holiday Hack 2022 - Cloud Ring]Playground [AOC2025 Day 8]Copy Fail Explained [CVE-2026-31431]LAN Party [Day 23 - Advent of Code 2024 - Python]Day 21: Step Counter [AOC2023 Python]Exploring Docker Registry Auth [HackTheBox RegistryTwo]Day 1 - No time for a Taxicab [Revival of Code 2023 - Advent of Code 2016]Python Directory Traversal Exploit [Yummy - HackTheBox]Addition [HackTheBox - Coding Challenge]
0xdf |

Day 10: Pipe Maze [AOC2023 Python]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER