Skip to content

My solutions to the Advent of Code puzzles. I have used C# and TDD to solve the puzzles.

Notifications You must be signed in to change notification settings

jansviland/AdventOfCode

Repository files navigation

Advent of Code

This is my solutions to the Advent of Code puzzles. I have used C# and TDD to solve the puzzles.

Demo of some of the solutions

2023 - Day 22 - Demo

For day 22 I used Unity to create a 3D model to illustrate the solution.

gif

2023 - Day 18 - Demo

gif

2023 - Day 16 - Demo

Not the correct solution, but a nice animation of almost the correct solution :)

gif

2023 - Day 10 - Demo

png

2023 - Day 7 - Demo

png

2023 - Day 6 - Demo

png

2023 - Day 5 - Demo

png

2023 - Day 3 - Demo

png

2022 - Day 14 - Demo

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.

gif

You can find the description here: 2022 / Day 14 / Description

How to run the 2022 - Day 14 application

open a terminal and run the following commands:

cd 2022\AdventOfCode.2022.Day14
dotnet run

2022 - Day 12 - Demo

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.

gif

Much better implementation of the path finding algorithm. Prioritizes the path that is closest to the goal.

gif

Correct implementation that finds the shortest path between two points.

gif

Result

png

2022 - Day 5 - Demo

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)

gif

You can find the description here: 2022 / Day 5 / Description

How to run the 2022 - Day 5 application

open a terminal and run the following commands:

cd 2022\AdventOfCode.2022.Day5
dotnet run

About

My solutions to the Advent of Code puzzles. I have used C# and TDD to solve the puzzles.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages