r/adventofcode • u/Stynson • Dec 23 '21
Visualization [2021 Day 23] Interactive solver web app
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
3
u/Stynson Dec 23 '21
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 programming1
u/Ning1253 Dec 23 '21
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!!
11
7
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
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
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
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 ...

8
u/ric2b Dec 23 '21 edited Dec 23 '21
Can't figure out how to get lower than 16107 for my input: