bjorng

bjorng

Erlang Core Team

Advent of Code 2019 - Day 25

Note: This topic is to talk about Day 25 of the Advent of Code 2019.

There is a private leaderboard for elixirforum members. You can join it by following this linkand entering the following code:

39276-eeb74f9a

Most Liked

bjorng

bjorng

Erlang Core Team

My solution today is an Elixir script that allows you to play the adventure game interactively.

I added some translation of the input commands, so that you can type “n” instead of “north” and “get” instead of take, and so on.

I also unintentionally added a cheat mode. If you pick up a lethal item (such as an infinite loop), the dying message will be printed, but you can continue to play.

I solved the problem by playing the adventure game manually. If I’ll get really bored during the rest of my Christmas vacations, I might implement an automatic solver.

Comparing this year’s Advent of Code to last year’s, this year had one puzzle that was much harder than anything last year. Overall I liked this year’s puzzle better than last year’s. There was less of finicky parsing and complex rules.

Merry Christmas! :christmas_tree::santa:

sasajuric

sasajuric

Author of Elixir In Action

For part 25 I made a simple interactive runner, and then solved the game manually. I’m not particularly interested in building the autosolver.

In general, I enjoyed the first half of this edition, but didn’t like most of the more demanding challenges in the second half. I found they were challenging me in a way I was less interested in (like “spot the special input” solution on day 16, manual boolean reduction on day 21, or math problem on day 22). I also didn’t really enjoy solving puzzles which were not particularly challenging but were finicky (e.g. day 20, or day 24).

I quite enjoyed comparing solutions with y’all, and I think this was for me the best thing about AoC this year. Thanks everyone, and have a happy holidays!

sb8244

sb8244

Author of Real-Time Phoenix

I did this by hand, so nothing great to share. But I did it decently fast and got 26 for pt2.

Last Post!

lud

lud

Yes I finished part 1 yesterday (last line edited in my previous post, I should have make it more clear I edited).

I am kind of disappointed that there is no logic in the item weights.

Where Next?

Popular in Challenges Top

bjorng
Note: This topic is to talk about Day 6 of the Advent of Code 2019. There is a private leaderboard for elixirforum members. You can join...
New
bjorng
Note: This topic is to talk about Day 18 of the Advent of Code 2019. There is a private leaderboard for elixirforum members. You can joi...
New
Aetherus
This topic is about Day 5 of the Advent of Code 2020 . Thanks to @egze, we have a private leaderboard: https://adventofcode.com/2020/le...
New
bjorng
This topic is about Day 14 of the Advent of Code 2020 . Thanks to @egze, we have a private leaderboard: https://adventofcode.com/2020/l...
New
bjorng
This topic is about Day 6 of the Advent of Code 2021. We have a private leaderboard (shared with users of Erlang Forums ): https://adve...
New
igorb
So… that’s it? Everyone is stuck on part 2? :slight_smile: I looked at Reddit hints and thought I probably wouldn’t have come up with the...
New
Aetherus
Today’s problem is really tense. I don’t think I can do it without libgraph.
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New

We're in Beta

About us Mission Statement