/adventofcode2024

Advent Of Code 2024

Primary LanguageC#MIT LicenseMIT

🎄 Advent of Code (2024) 🎄

Advent Of Code 2024

Previous Years: https://github.com/AlexHedley/adventofcode (https://alexhedley.github.io/adventofcode)


C#

Ranking

Private Leaderboard

    |     |                   1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2
    |     | 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
 13 | 159 | * * * ° ° ° ■ ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° | 7

Key: * Both | ■ One | ° None |

Silver ■ Gold ⭐
1 3

Solutions

This repo contains my solutions to the Advent of Code 2024 using primarily C#.

The code will likely be bad. :p

Setup

dotnet tool install -g dotnet-script

dotnet tool update dotnet-script -g

Copy the 📂 day folder and use.

Running Solutions/Tests

How to run the solution file for each day depends on the language.

C#

Any C# scripts will require dotnet-script and ScriptUnit.

For C# solutions

  • cd dayXX
  • dotnet script solution.csx
  • dotnet script tests.csx

or

  • dotnet script dayXX/solution.csx
  • dotnet script dayXX/tests.csx

Libraries