Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexhedley/adventofcode2023

Advent Of Code 2023
https://github.com/alexhedley/adventofcode2023

advent-of-code advent-of-code-2023 aoc opencast-aoc-2023

Last synced: about 1 month ago
JSON representation

Advent Of Code 2023

Awesome Lists containing this project

README

        

# 🎄 Advent of Code (2023) 🎄

[Advent Of Code](https://adventofcode.com/) [2023](https://adventofcode.com/2023/)

- [Awesome Advent of Code](https://github.com/Bogdanp/awesome-advent-of-code)

---

[![C#](https://img.shields.io/badge/c%23-%23239120.svg?style=for-the-badge&logo=c-sharp&logoColor=white)](https://learn.microsoft.com/en-us/dotnet/csharp/)

- [Docs](docs/README.md)
- [Stats](docs/STATS.md)

## Ranking

*Private Leaderboard*

```bash
| | 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 | 622 | * * * * ° * ° ■ * ° ° ° ° ° * ° ° ° ° ° ° ° ° ° ° | 14
```

Key: \* Both | ■ One | ° None |

| Silver ■ | Gold ⭐ |
| -------- | ------- |
| 2 | 6 |

## Solutions

- [Day 1](day01/README.md)
- [Day 2](day02/README.md)
- [Day 3](day03/README.md)
- [Day 4](day04/README.md)
- [Day 5](day05/README.md) *
- [Day 6](day06/README.md)
- [Day 7](day07/README.md) *
- [Day 8](day08/README.md)
- [Day 9](day09/README.md)
- [Day 10](day10/README.md) *
- [Day 11](day11/README.md) *
- [Day 12](day12/README.md) *
- [Day 13](day13/README.md) *
- [Day 14](day14/README.md) *
- [Day 15](day15/README.md)
- [Day 16](day16/README.md) *
- [Day 17](day17/README.md) *
- [Day 18](day18/README.md) *
- [Day 19](day19/README.md) *
- [Day 20](day20/README.md) *
- [Day 21](day21/README.md) *
- [Day 22](day22/README.md) *
- [Day 23](day23/README.md) *
- [Day 24](day24/README.md) *
- [Day 25](day25/README.md) *

This repo contains my solutions to the [Advent of Code 2023](https://adventofcode.com/2022) using primarily [C#](https://learn.microsoft.com/en-us/dotnet/csharp/).

The code will likely be bad. :p

## Setup

`dotnet tool install -g dotnet-script`

- [dotnet-script](https://github.com/dotnet-script/dotnet-script)

Copy the [day](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](https://github.com/filipw/dotnet-script) and [ScriptUnit](https://github.com/seesharper/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

- [ScriptUnit](https://github.com/seesharper/ScriptUnit)
- [Fluent Assertions](https://github.com/fluentassertions/fluentassertions)