Sean McLemon | Advent of Code

Home | Czech | Blog | GitHub | Advent Of Code | Notes


2019-12-25 - Cryostasis

(original .ipynb)

Day 25 puzzle input is an IntCode program (mine is here) which presents a little text adventure. Part 1 involves making your way through this text adventure until you get to a point where you are given a password. This doesn't sound too tough but you essentially need to go through the adventure, pick up a bunch of objects which weigh certain value and find which combination of them let you pass through a given security gate. I solved this by creating an interactive wrapper around my IntCode interpreter and discovered the items (which could be picked up) by exploring. Then I produced a list of instructions to automate this all-item-pickup stuff, then played around a bit with combos before writing some code to automate the checking of combinations after realising I wouldn't get there by playing. The code is here: https://github.com/smcl/aoc-2019-xmas

== Security Checkpoint ==
In the next room, a pressure-sensitive floor will verify your identity.

Doors here lead:
- east
- south

Items here:
- manifold
- polygon
- weather machine
- candy cane

Command?


You drop the dehydrated water.

Command?


You drop the bowl of rice.

Command?


You drop the hypercube.

Command?


You drop the dark matter.

Command?


You take the dehydrated water.

Command?


You take the bowl of rice.

Command?


You take the candy cane.

Command?


You take the dark matter.

Command?




== Pressure-Sensitive Floor ==
Analyzing...

Doors here lead:
- north

A loud, robotic voice says "Analysis complete! You may proceed." and you enter the cockpit.
Santa notices your small droid, looks puzzled for a moment, realizes what has happened, and radios your ship directly.
"Oh, hello! You should be able to get in by typing 10504192 on the keypad at the main airlock."