This is my solutions to the Advent of Code puzzles. I have used C# and TDD to solve the puzzles.
For day 22 I used Unity to create a 3D model to illustrate the solution.
Not the correct solution, but a nice animation of almost the correct solution :)
Here is an example of the solution for day 14. I created an animation of the sand falling into the cave in the terminal. For part 1 I show each sand added, for part 2 I show every 1009 sand added to the cave.
You can find the description here: 2022 / Day 14 / Description
open a terminal and run the following commands:
cd 2022\AdventOfCode.2022.Day14
dotnet run
Poorly implemented path finding algorithm. It will find the shortest path between two points, but it will not do it very fast... Made a nice animation of the path finding algorithm though.
Much better implementation of the path finding algorithm. Prioritizes the path that is closest to the goal.
Correct implementation that finds the shortest path between two points.
Result
Here is an example of the solution for day 5. It will print out all the move operations and the results along the way.
I have written an in-depth description of the solution here: https://medium.com/systek/test-drevet-adventskalender-c12ee26909eb (Norwegian)
You can find the description here: 2022 / Day 5 / Description
open a terminal and run the following commands:
cd 2022\AdventOfCode.2022.Day5
dotnet run