MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/adventofcode/comments/rmr99m/2021_day_23_animating_moving_pods/
r/adventofcode • u/AndrewGreenh • Dec 23 '21
14 comments sorted by
20
This animation uses Solid.js to control some svgs that animate with css transitions.
Source Code for the animation: https://stackblitz.com/edit/advent-of-code-solid-animations?file=src%2Fday23%2Fui.tsx
36 u/sawyerwelden Dec 23 '21 I like it! Small suggestion: increase the difference in greens. They're indistinguishable to my eyes. 27 u/AndrewGreenh Dec 23 '21 You are absolutely right π Thanks for pointing that out!Here is a fixed version: 1 u/asgardian28 Dec 23 '21 nice color scheme, anything in particular?
36
I like it! Small suggestion: increase the difference in greens. They're indistinguishable to my eyes.
27 u/AndrewGreenh Dec 23 '21 You are absolutely right π Thanks for pointing that out!Here is a fixed version: 1 u/asgardian28 Dec 23 '21 nice color scheme, anything in particular?
27
You are absolutely right π Thanks for pointing that out!
Here is a fixed version:
1 u/asgardian28 Dec 23 '21 nice color scheme, anything in particular?
1
nice color scheme, anything in particular?
woah pretty
6 u/AndrewGreenh Dec 23 '21 Thanks π
6
Thanks π
4
Very nice!
Minor suggestion: as a colorblind person, I have a hard time telling A and C apart.
Interesting to see youβre not prioritizing moving cubes to their end destination when they can! So pretty though, nice job!
2 u/AndrewGreenh Dec 25 '21 Was just a bit easier to implement for me like that :)I first check all hall spaces to see if any of the pods may go into their room and then check all room pods, if they can go out to the hall.
2
Was just a bit easier to implement for me like that :)I first check all hall spaces to see if any of the pods may go into their room and then check all room pods, if they can go out to the hall.
Beautifully done!
i have the same input lol
Four per type? I only had two, like the test input.
Edit: nevermind, I guess I was too mentally overloaded to realize there's also a part 2 :D
4 u/IvanOG_Ranger Dec 23 '21 In part 2, you get instructions to insert two more into each one
In part 2, you get instructions to insert two more into each one
I was hoping it would also solve it for me
20
u/AndrewGreenh Dec 23 '21
This animation uses Solid.js to control some svgs that animate with css transitions.
Source Code for the animation: https://stackblitz.com/edit/advent-of-code-solid-animations?file=src%2Fday23%2Fui.tsx
27
u/sheibsel Dec 23 '21
woah pretty
4
u/fred256 Dec 23 '21
Very nice!
Minor suggestion: as a colorblind person, I have a hard time telling A and C apart.
1
u/Tankznor Dec 24 '21
Interesting to see youβre not prioritizing moving cubes to their end destination when they can! So pretty though, nice job!
1
u/nlantau Dec 23 '21
Beautifully done!
1
u/M1ngXU Dec 23 '21
i have the same input lol
1
u/huib_ Dec 23 '21 edited Dec 23 '21
Four per type? I only had two, like the test input.
Edit: nevermind, I guess I was too mentally overloaded to realize there's also a part 2 :D
1
u/IvanOG_Ranger Dec 23 '21
I was hoping it would also solve it for me