Files
2019/days
Parnic 2b554d1b3d Day 25 solution
Sort of...I mean, you have to play it yourself, but it works. This is a text-based adventure game. The goal is to go around picking up items (except for the 5 items that will kill you/end or hang the game) then find the right combination of items that lets you get through the pressure-sensitive room which terminates the game and gives you the code to enter on the website.

My understanding is that every item has a power-of-2 weight to it, and you have to reach the right set of items to have your weight match the target. The main problem I had was that the output for the pressure room's "heavier" and "lighter" words mean that _other_ droids are heavier/lighter than _you_. Which means if it says "lighter", you need to shed weight/drop stuff, but if it says "heavier", you need to add weight/pick up stuff.

This could be automated in several different ways, but my thought is you'd want to explore the maze, picking up everything that's not the blocked 5 items, find the pressure-sensitive room, and try every combination of items until the process exits, at which point you'd display the number after "by typing" in the final output string. I've stubbed out support for reading the program's output so that you could inspect it and automate if you really wanted to. Right now it just parses the answer from the final output line and prints that by itself.

Items that **should not** be picked up are:

    infinite loop (does what it says to your program)
    molten lava (kills you)
    escape pod (ends the game)
    photons (turns out the lights and causes you to get eaten by a grue)
    giant electromagnet (gets you stuck - no other input works and it cannot be dropped)

This commit's program lets you through if you're carrying:

- ornament
- astrolabe
- weather machine
- food ration

which results in a code of 4206594
2022-07-22 16:56:47 -05:00
..
2022-06-06 15:30:58 -05:00
2022-07-22 08:59:42 -05:00
2022-06-21 12:22:30 -05:00
2022-06-09 08:23:34 -05:00
2022-06-13 15:29:18 -05:00
2022-06-14 09:21:10 -05:00
2022-06-29 08:11:33 -05:00
2022-06-16 08:24:56 -05:00
2022-06-20 08:54:52 -05:00
2022-06-21 12:18:31 -05:00
2022-06-22 08:17:45 -05:00
2022-06-23 10:08:33 -05:00
2022-06-27 00:01:19 -05:00
2022-06-28 08:32:59 -05:00
2022-06-29 08:11:33 -05:00
2022-06-29 08:11:33 -05:00
2022-06-30 08:03:18 -05:00
2022-07-18 09:20:29 -05:00
2022-07-12 08:45:47 -05:00
2022-07-13 08:40:48 -05:00
2022-07-14 14:54:02 -05:00
2022-07-18 09:20:29 -05:00
2022-07-19 13:29:19 -05:00
2022-07-20 08:35:34 -05:00
2022-07-21 09:37:39 -05:00
2022-07-22 16:56:47 -05:00