Skip to content

AlexHedley/adventofcode2022

Repository files navigation

🎄 Advent of Code (2022) 🎄

Advent Of Code 2022


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
9  | 389 | * * * * * * ° * ° ■ ■ ° ° ° ° ° ° ° ° ° ° ° ° ° ° | 16

Key: * Both | ■ One | ° None |

Silver ■ Gold ⭐
2 7

Solutions

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

The code will likely be bad. :p

Setup

dotnet tool install -g dotnet-script

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

(cd app)

### Kotlin

cd app-kotlin

./gradlew compileKotlin ./gradlew compile

./gradlew test