Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexhedley/adventofcode2021
Advent Of Code 2021
https://github.com/alexhedley/adventofcode2021
advent-of-code advent-of-code-2021 opencast-aoc-2021
Last synced: about 1 month ago
JSON representation
Advent Of Code 2021
- Host: GitHub
- URL: https://github.com/alexhedley/adventofcode2021
- Owner: AlexHedley
- Created: 2021-12-02T09:26:45.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-03T10:07:27.000Z (about 1 year ago)
- Last Synced: 2023-12-03T11:20:59.159Z (about 1 year ago)
- Topics: advent-of-code, advent-of-code-2021, opencast-aoc-2021
- Language: C#
- Homepage: https://adventofcode.com/2021/
- Size: 182 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🎄 Advent of Code (2021) 🎄
[Advent Of Code](https://adventofcode.com/) [2021](https://adventofcode.com/2021/)
---
![Haskell](https://img.shields.io/badge/Haskell-5e5086?style=for-the-badge&logo=haskell&logoColor=white)
![C#](https://img.shields.io/badge/c%23-%23239120.svg?style=for-the-badge&logo=c-sharp&logoColor=white)## 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
15 | 204 | * * ■* ° ■* ■■° ° ° ° ° ° ° ° ° ° ° ■■° ° ■| 15
```Key: * Both | ■One | ° None |
| Silver â– | Gold * |
| - | - |
| 7 | 4 |## Solutions
- [Day 1](day01/README.md)
- [Day 2](day02/README.md)
- [Day 3](day03/README.md)
- [Day 4](day04/README.md)- [Day 6](day06/README.md)
- [Day 7](day07/README.md)
- [Day 8](day08/README.md)
- [Day 9](day09/README.md)- [Day 21](day21/README.md)
- [Day 22](day22/README.md)- [Day 25](day25/README.md)
This repo contains my solutions to the [Advent of Code 2021](https://adventofcode.com/2021) using primarily [Haskell](https://www.haskell.org).
The code will likely be bad. :p
## Setup
See [WIKI](https://github.com/AlexHedley/adventofcode2021/wiki) for setup instructions for [Haskell](https://www.haskell.org).
## Running Solutions/Tests
Any tests I write will likely just be asserts in each solution file.
How to run the solution file for each day depends on the language.
### Haskell
`cabal build`
`ghci`
Prelude> `:load app/Main.hs`
or
`ghci app/Main.hs`
Or if you have dependencies
`cabal repl`
Then run
```bash
*Main> main
```### C#
Any C# scripts will require [dotnet-script](https://github.com/filipw/dotnet-script).
For C# solutions `dotnet script dayXX/solution.csx`