Commit graph

13 commits

Author SHA1 Message Date
5cb2dccf62 Deprecate nouns and verbs arguments for intcode 2023-12-19 14:51:11 +01:00
f98545ae5a Solve 2019:11 "Space Police"
Bugs discovered in intcode:

- Relative base was reset on await input suspend.
- No handling for incorrect intcodes.
- State was sometimes corrupted when resumed after
  suspend.

Fixed and Patched in 0.3.2
2023-12-19 14:51:11 +01:00
262ad34c51 Solve 2019:10 "Monitoring Station". 2023-12-19 14:51:11 +01:00
d9142068ea Solve 2019:09 "Sensor Boost"
This was a hard one. I would not have made it
without r/adventofcode where all assertions
in __main__ were fetched. For values it was
straight forward enough, but for some reason
it did not work for positioning.

I still do not understand how one is supposed to
chew the WALL OF TEXT each day of 2019 and figure
out these stuffs on your own.

It took 10-12 hours to solve part 1. AoC day 9
is no joke.

Links that helped me:

- https://www.reddit.com/r/adventofcode/comments/e8aw9j/2019_day_9_part_1_how_to_fix_203_error/
- https://www.reddit.com/r/adventofcode/comments/jr9xrn/comment/gbwr85k/
2023-12-19 14:51:11 +01:00
c51638fac1 Solve 2019:07 "Amplication Circuit"
Breaking change for intcode 0.3.0, revisited
earlier use of the computer to update code.
2023-12-19 14:51:11 +01:00
4623fdac95 Solve 2019:08 "Space Image Format" 2023-12-19 14:51:11 +01:00
5be719dcf9 Solve 2019:06 "Universal Orbit Map"
Tried to solve part 2 using BFS, but did not
figure out a way to find shortest path. Fell
back to a less elegant but more simple
approach.
2023-12-19 14:51:11 +01:00
9eccd731b4 Solve 2019:05 "Sunny with a Chance of Asteroids"
Refactored the intcode computer to live in a separate
file, since it will come back more times.

As a nice touch, output of aoc.py will print the version
used of the intcode.

As another nice touch, the int code has a CHANGELOG.
2023-12-19 14:51:11 +01:00
298b97b66d Solve 2019:04 "Secure Container" 2023-12-19 14:51:11 +01:00
799216623e Solve 2019:03 "Crossed Wires" 2023-12-19 14:51:11 +01:00
e1d4741cfc Solve 2019:02 "1202 Program Alarm" 2023-12-19 14:51:11 +01:00
85a67d26fa Solve 2019:01 "The Tyranny of the Rocket Equation" 2023-12-19 14:51:11 +01:00
133c76a02a Initiate AoC 2019 in python 2023-12-19 14:51:11 +01:00