Day 12 - Leonardos Monorail [Revival of Code 2023 - Advent of Code 2016] @0xdf
Day 12 - Leonardos Monorail [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 12 challenge, Leonardo's Monorail, is so much easier than day 12! I'll create a simple computer with four instructions and four integer registers.

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:17] genday.sh / input
[01:45] Initial Computer test
[04:10] Creating Computer class
[05:39] run function for Computer
[09:42] Tests for run and get_value
[11:13] Fixing typos
[11:48] get_value function for Computer
[12:36] Fixing typos
[12:55] Tests passing, updating to solve part 1
[14:04] Part 2 challenge
[14:14] Updating to solve part 2
[14:49] Looking at input manually while part 2 runs
[15:58] Solving part 2

#ctf #adventofcode #revivalofcode #python
Day 12 - Leonardos Monorail [Revival of Code 2023 - Advent of Code 2016]Hacking Luggage Lock [Sans Holiday Hack 2023]Code Chronicle [Day 25 - Advent of Code 2024 - Python]Day 21 - Scrambled Letters and Hash [Revival of Code 2023 - Advent of Code 2016]Red-Nosed Reports [Day 2 - Advent of Code 2024 - Python]Decrypting AsyncRAT Configuration Values with CyberChefDay 13 - A Maze of Twisty Little Cubicles [Revival of Code 2023 - Advent of Code 2016]PCAP and Web Log Forensics [Sans Holiday Hack 2022 - Web Ring]Python Debugging [Chemistry - HackTheBox]Claw Contraption [Day 13 - Advent of Code 2024 - Python]Day 11 - Radioisotope Thermoelectric Generators [Revival of Code 2023 - Advent of Code 2016]Trash Compactor [AOC2025 Day 6]
0xdf |

Day 12 - Leonardo's Monorail [Revival of Code 2023 - Advent of Code 2016]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER