Day 10 - Balance Bots [Revival of Code 2023 - Advent of Code 2016] @0xdf
Day 10 - Balance Bots [Revival of Code 2023 - Advent of Code 2016]  @0xdf
Uploaded July 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 10 challenge, Balance Bots, gives a set of instructions, where each line either describes what chip a bot starts with, or how it passes its chips to another bot. I'll parse the instructions, and then generate the flow to answer some questions about what chips end up where.

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:13] Challenge Part 1
[01:55] genday.sh / input
[02:06] Part 1 tests
[02:35] Bot class skeleton
[06:00] Parsing tests
[08:21] parse function
[13:10] Debugging parse
[14:32] More tests on example data parsing
[15:32] Using tests to input data parsing
[21:03] Part 1 tests
[23:27] Part 1
[27:24] Pasing part 1 first test, adding more
[28:24] Solving part 1
[28:30] Part 2 challenge
[29:09] Modifying part 1 code to solve part 2
[32:27] Conclusion

#ctf #adventofcode #revivalofcode #python
Day 10 - Balance Bots [Revival of Code 2023 - Advent of Code 2016]cURLing - An Introduction to curl [Sans Holiday Hack 2024]Day 11: Cosmic Expansion [AOC2023 Python]Exploring the HackTheBox TwoMillion PHP Application [Beyond Root]Day 4: Scratchcards [AOC2023 Python]New: HackTheBox Guided Mode!Python Script to Read Files on Encoding [HackTheBox]Brute Forcing a Web Pin - Frosty Keypad [Sans Holiday Hack 2024]Printing Department [AOC2025 Day 4]PowerShell Challenge [Sans Holiday Hack 2024]Scanning UDP with nmapReading (Almost) A Million QRCodes [Hackvent 2022 - Day 16]
0xdf |

Day 10 - Balance Bots [Revival of Code 2023 - Advent of Code 2016]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER