X-Git-Url: https://git.njae.me.uk/?p=advent-of-code-19.git;a=blobdiff_plain;f=problems%2Fday25.html;fp=problems%2Fday25.html;h=307a686aae452dcb3bd23731493da03c3bea3572;hp=0000000000000000000000000000000000000000;hb=3678ceddbeee0dd08141a177709579ee494bc8da;hpb=5bfe9247189762b20f843032ecc8759a4324d210 diff --git a/problems/day25.html b/problems/day25.html new file mode 100644 index 0000000..307a686 --- /dev/null +++ b/problems/day25.html @@ -0,0 +1,142 @@ + + + + +Day 25 - Advent of Code 2019 + + + + + + + +

Advent of Code

Neil Smith (AoC++) 50*

        //2019

+ + + +
+ +

--- Day 25: Cryostasis ---

As you approach Santa's ship, your sensors report two important details:

+

First, that you might be too late: the internal temperature is -40 degrees.

+

Second, that one faint life signature is somewhere on the ship.

+

The airlock door is locked with a code; your best option is to send in a small droid to investigate the situation. You attach your ship to Santa's, break a small hole in the hull, and let the droid run in before you seal it up again. Before your ship starts freezing, you detach your ship and set it to automatically stay within range of Santa's ship.

+

This droid can follow basic instructions and report on its surroundings; you can communicate with it through an Intcode program (your puzzle input) running on an ASCII-capable computer.

+

As the droid moves through its environment, it will describe what it encounters. When it says Command?, you can give it a single instruction terminated with a newline (ASCII code 10). Possible instructions are:

+ +

Extra spaces or other characters aren't allowed - instructions must be provided precisely.

+

Santa's ship is a Reindeer-class starship; these ships use pressure-sensitive floors to determine the identity of droids and crew members. The standard configuration for these starships is for all droids to weigh exactly the same amount to make them easier to detect. If you need to get past such a sensor, you might be able to reach the correct weight by carrying items from the environment.

+

Look around the ship and see if you can find the password for the main airlock.

+
+

Your puzzle answer was 269520896.

--- Part Two ---

As you move through the main airlock, the air inside the ship is already heating up to reasonable levels. Santa explains that he didn't notice you coming because he was just taking a quick nap. The ship wasn't frozen; he just had the thermostat set to "North Pole".

+

You make your way over to the navigation console. It beeps. "Status: Stranded. Please supply measurements from 49 stars to recalibrate."

+

"49 stars? But the Elves told me you needed fifty--"

+

Santa just smiles and nods his head toward the window. There, in the distance, you can see the center of the Solar System: the Sun!

+

The navigation console beeps again.

+
+

If you like, you can .

+

Both parts of this puzzle are complete! They provide two gold stars: **

+

At this point, all that is left is for you to admire your Advent calendar.

+

If you still want to see it, you can get your puzzle input.

+

You can also this puzzle.

+
+ + + + + + \ No newline at end of file