johntelforduk / advent-of-code-2019

Solutions to the Advent of Code 2019 puzzles.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent of Code 2019

Solutions to the Advent of Code 2019 puzzles.

https://adventofcode.com/2019

Notes

Day 17 "Set and Forget"

For part 2, I wrote the program analyse.py to find the path across the scaffolding. I then copy-and-pasted that into check.txt. Then I used a text editor to manually find repeating patterns in the path (it only took a few minutes to spot them). This was then used to figure out the input sent to the Intcode computer in part_2.py.

Day 19 "Tractor Beam"

I found the solution by running part_2.py repeatedly, adjusting ship_x and ship_y by trial-and-error until the square fitted inside the beam.

About

Solutions to the Advent of Code 2019 puzzles.

License:MIT License


Languages

Language:Python 100.0%