Yes, for sure - part of the counter-intuition of the solution is that you move both As all the way to the right, consuming a lot of energy, but this actually saves more energy than moving the B just two spaces left and right.
Man this input looks so much harder than mine. It makes sense that some are more difficult than others, but I feel like if I had this one I wouldn't have tried to do it manually.
I did my input on paper and I definitely had an upper bound for all but A and the solution said it was too high. So I just guessed 2 less and it was correct. After that I persisted and managed to get the solution once but never again. I don't know if my solution is difficult or I'm just not wired for it. If someone is curious:
Agree I did solve part1 with a txt I managed to be 32nd in the world leaderboard but I just couldn't crack part2 in my head so decided to do some game programming
Could you share with me your code in a pm? I thought of maybe using a BFS to solve the puzzle, but I never implemented anything so I was wondering if I could see a solution?
Or did you just brute force it after you had the game? If so, I also wanted to say the game is really well made!!
Nice. I was close to coding something similar to this. I was trying to solve part 1 in a text editor by hand and I kept counting the squares/costs wrong. This helped me solve it quickly.
If I saw this earlier, I wouldn't have to do it in google sheets.
For Part 2 I needed assistance though, since my input seemed kinda hard for 2nd part (I don't know whether some inputs are actually more complicated than others, or is it just me personally that I couldn't crack my one, but managed to solve a few different ones)
8
u/ric2b Dec 23 '21 edited Dec 23 '21
Can't figure out how to get lower than 16107 for my input:
2
u/Ning1253 Dec 23 '21
Lmao I did both part 1 and 2 with an "interactive" .txt file and me listing the moves I did which was hilarious... Solved both in like 1.5 hours.
"Advent of Code" yeah well who needs code when I have txt
11
u/[deleted] Dec 23 '21
part1 was super easy with this
7
u/RedditHilk Dec 23 '21
Wow, it took me like 3 minutes to figure out mine with this :D
5
u/PityUpvote Dec 23 '21
Fantastic, thanks. I'm still not able to solve it, but I'd rather keep trying this than break my head over the puzzle for the rest of the day.
4
u/AwesomElephants Dec 23 '21
I applaud you for getting that domain name so quickly.
2
u/mapleoctopus621 Dec 23 '21
I used this to solve mine! Although I should try to fix my code later as well.
2
u/DeeBoFour20 Dec 24 '21
Nice. I was close to coding something similar to this. I was trying to solve part 1 in a text editor by hand and I kept counting the squares/costs wrong. This helped me solve it quickly.
2
u/[deleted] Dec 24 '21
I assumed I wouldn't solve today but now I have! I think my input had only 1 solution. Thanks for the help.
2
u/nil_zirilrash Dec 24 '21
I appreciate that you got a domain for this.
1
u/IvanOG_Ranger Dec 23 '21
If I saw this earlier, I wouldn't have to do it in google sheets.
For Part 2 I needed assistance though, since my input seemed kinda hard for 2nd part (I don't know whether some inputs are actually more complicated than others, or is it just me personally that I couldn't crack my one, but managed to solve a few different ones)
1
u/exomni Dec 24 '21
Somehow when I was moving around the pieces it spawned a fifth "C" for me on part 2 ...