Play my pipes game: https://hexapipes.vercel.app/play
I like the mix of hexagons, triangles and squares - hexapipes.vercel.app/rhombitrihex...
And the triangular grid is just pure minimalism - three distinct tiles and that's it hexapipes.vercel.app/triangular/5
I like the mix of hexagons, triangles and squares - hexapipes.vercel.app/rhombitrihex...
And the triangular grid is just pure minimalism - three distinct tiles and that's it hexapipes.vercel.app/triangular/5
www.youtube.com/playlist?lis...
Managed to do a total of 14 days with #py5. Curiously the number is exactly the same as in '23 when I used #pygame. Each video has a link to the animation source code if you wanna see the messy plumbing)
www.youtube.com/playlist?lis...
Managed to do a total of 14 days with #py5. Curiously the number is exactly the same as in '23 when I used #pygame. Each video has a link to the animation source code if you wanna see the messy plumbing)
Most memorable days for me:
- Day 14 (find the tree)
- Day 21 (robots inception)
- Day 24 (so that's how binary addition works!)
#py5 was very nice for making animations and I learned to use a statemachine to manage vis data
Most memorable days for me:
- Day 14 (find the tree)
- Day 21 (robots inception)
- Day 24 (so that's how binary addition works!)
#py5 was very nice for making animations and I learned to use a statemachine to manage vis data
I submitted a handcrafted part2 answer earlier but I've now written some code that finds the swaps. Who knows if it works on other inputs =)
github.com/gereleth/aoc...
I submitted a handcrafted part2 answer earlier but I've now written some code that finds the swaps. Who knows if it works on other inputs =)
github.com/gereleth/aoc...
#AdventOfCode Day 23 LAN Party
#AdventOfCode Day 23 LAN Party
Showing millions of cheats is tricky so this one turned out a little weird =). In part 2 it repaints the points by their total possible cheat gains. Pretty neat structure shows up.
#py5 animation code: github.com/gereleth/aoc...
Showing millions of cheats is tricky so this one turned out a little weird =). In part 2 it repaints the points by their total possible cheat gains. Pretty neat structure shows up.
#py5 animation code: github.com/gereleth/aoc...
The robots almost broke my brain this morning, this was super hard for some reason.
But at least the solution works pretty much instantly.
#python solution code: github.com/gereleth/aoc...
#py5 animation code github.com/gereleth/aoc...
The robots almost broke my brain this morning, this was super hard for some reason.
But at least the solution works pretty much instantly.
#python solution code: github.com/gereleth/aoc...
#py5 animation code github.com/gereleth/aoc...
Some dynamic programming if not dynamic visuals.
No idea how to show full input, there's 400 sequences there =).
Some dynamic programming if not dynamic visuals.
No idea how to show full input, there's 400 sequences there =).
adventofcode.com/2024/day/19
First I threw together some memoized recursion - worked fine but took 1.7s to complete both parts. That was kinda slow so I looked for ways to speed things up and managed to make it 20x faster!
adventofcode.com/2024/day/19
First I threw together some memoized recursion - worked fine but took 1.7s to complete both parts. That was kinda slow so I looked for ways to speed things up and managed to make it 20x faster!
I did a binary search in part 2 in my actual solution but watching how the path rebuilds after every new obstacle is pretty fun too.
I did a binary search in part 2 in my actual solution but watching how the path rebuilds after every new obstacle is pretty fun too.
Looks full of holes but it is a thorough search.
#python solution: github.com/gereleth/aoc... (same priority queue powered search I throw at every optimization problem)
#py5 animation code: github.com/gereleth/aoc...
Looks full of holes but it is a thorough search.
#python solution: github.com/gereleth/aoc... (same priority queue powered search I throw at every optimization problem)
#py5 animation code: github.com/gereleth/aoc...
Checking density anomalies for fun and profit.
I love how the vertical density chart itself sometimes looks like half a christmas tree.
Checking density anomalies for fun and profit.
I love how the vertical density chart itself sometimes looks like half a christmas tree.
This took a while, but here is a first attempt for day 12. I used #pygame to draw the frames and #ffmpeg to build the video.
This took a while, but here is a first attempt for day 12. I used #pygame to draw the frames and #ffmpeg to build the video.
But something finally works even for the crazier shapes like this one.
#AdventOfCode
But something finally works even for the crazier shapes like this one.
#AdventOfCode
So here's my iterative approach for a change. One simple counter trick to save an astronomical amount of repeated work =).
github.com/gereleth/aoc...
So here's my iterative approach for a change. One simple counter trick to save an astronomical amount of repeated work =).
github.com/gereleth/aoc...
#AdventOfCode
#AdventOfCode
Made a #py5 animation of the search for hiking trails
youtu.be/2kjX5DxUANc
Animation source code: github.com/gereleth/aoc...
Made a #py5 animation of the search for hiking trails
youtu.be/2kjX5DxUANc
Animation source code: github.com/gereleth/aoc...
#AdventOfCode Day 8 - Resonant Collinearity
youtu.be/OKk7IBs2s_k
Animation source code: github.com/gereleth/aoc...
#AdventOfCode Day 8 - Resonant Collinearity
youtu.be/OKk7IBs2s_k
Animation source code: github.com/gereleth/aoc...