Day 11 - Radioisotope Thermoelectric Generators [Revival of Code 2023 - Advent of Code 2016] @0xdf
Day 11 - Radioisotope Thermoelectric Generators [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 11 challenge, Radioisotope Thermoelectric Generator, is quite hard. I'll have to do a breadth-first search to brute force steps moving around chips and generators within some given rules. Lots of room for errors! I'll write several classes, make use of properties, deque, regex, and more.

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

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

[00:00] Introduction
[00:42] Challenge Part 1
[02:11] genday.sh / input
[03:07] Item / Gen / Chip classes
[06:26] Floor class
[09:46] State class __init__ (and bottom_floor property)
[12:23] State __repr__
[14:08] State __hash__ and __eq__
[18:39] State is_complete property
[19:45] State is_valid property
[21:35] State next_states and generate_state
[27:08] Parsing input into State
[30:43] Debugging typos
[31:29] Checking State in debug
[32:41] Brute force part1 with BFS
[35:30] Debugging typos
[35:53] Running to part 1 solve
[36:17] Part 2 challenge
[36:53] Refactoring in prep for part 2
[37:35] Updating initial_state for part 2 and solving
[39:13] Conclusion

#ctf #adventofcode #revivalofcode #python
Day 11 - Radioisotope Thermoelectric Generators [Revival of Code 2023 - Advent of Code 2016]Trash Compactor [AOC2025 Day 6]Hash Extension Attack [HackTheBox Ouija]Analysis of a Python / GRPC Application [PC - HackTheBox]Configuring VSCode to Debug Python [AOC2023 Python]Day 7 - Internet Protocol Version 7 [Revival of Code 2023 - Advent of Code 2016]MinMax [HackTheBox - Coding Challenge]Python Script to Read Files on RainyDay [HackTheBox]Recent Updates in Feroxbuster 2.9.1Day 16 - Dragon Checksum [Revival of Code 2023 - Advent of Code 2016]Day 10 - Balance Bots [Revival of Code 2023 - Advent of Code 2016]cURLing - An Introduction to curl [Sans Holiday Hack 2024]
0xdf |

Day 11 - Radioisotope Thermoelectric Generators [Revival of Code 2023 - Advent of Code 2016]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER