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.

Where Next?

Popular in Challenges Top

Qqwy
Note by the Moderators: This topic is to talk about Day 6 of the Advent of Code. For general discussion about the Advent of Code 2018 an...
New
stevensonmt
Trying to get more facility with dynamic programming concepts on Leetcode and having an issue I can’t find a way around. It’s a chutes an...
New
Aetherus
This topic is about the Advent of Code 2021 - Day 4. Thanks to @bjorng , we now have a new Private Leaderboard. The entry code is: 370...
New
Aetherus
Don’t know why the regex ~r/[\W && [^\.]]/x does not work in Elixir. It works pretty well in Ruby. Anyway, here is my solution:
New
New
bjorng
Note: This topic is to talk about Day 23 of the Advent of Code. For general discussion about the Advent of Code 2018 and links to topics...
New
bjorng
This topic is about Day 1 of the Advent of Code 2021. We have a private leaderboard (shared with users of Erlang Forums): https://adven...
New
cblavier
Hey there :wave: No magic or algorithmic finesse today, I just finished the challenge and I my code is quite slow (1sec for part1, 3se...
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
bjorng
Here is my solution for day 1 of Advent of Code: defmodule Day01 do def part1(input) do all = parse(input) {first, second} = E...
New

Other popular topics Top

freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
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
sacepums
Hey guys. I'm new to elixir and im really stocked about it. But I ran into a bit of problem - I need to convert a date sting, for examp...
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
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

We're in Beta

About us Mission Statement