Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamiemagee/adventofcode
https://github.com/jamiemagee/adventofcode
advent-of-code advent-of-code-2020 advent-of-code-2020-csharp advent-of-code-csharp
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jamiemagee/adventofcode
- Owner: JamieMagee
- License: mit
- Created: 2020-12-02T09:34:00.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-30T16:04:15.000Z (3 months ago)
- Last Synced: 2024-10-06T12:42:30.055Z (3 months ago)
- Topics: advent-of-code, advent-of-code-2020, advent-of-code-2020-csharp, advent-of-code-csharp
- Language: C#
- Homepage: https://jamiemagee.github.io/AdventOfCode
- Size: 12.9 MB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advent of Code
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/JamieMagee/AdventOfCode/GitHub%20Pages?style=for-the-badge)](https://github.com/JamieMagee/AdventOfCode/actions?query=workflow%3A%22GitHub+Pages%22)
My solutions for [Advent of Code](https://adventofcode.com/) written in C# and Blazor WebAssembly
Check it out at https://jamiemagee.github.io/AdventofCode.
Based on [sanraith/aoc2019](https://github.com/sanraith/aoc2019)
## Project Structure
| Folder | Description |
|------------------------------------|-------------------------------------------------------------|
| `AdventOfCode.Core` | Interfaces and classes for solving puzzles |
| `AdventOfCode.Core.Test` | Interfaces and classes for puzzle tests |
| `AdventOfCode.{Year}.Puzzles` | Inputs and solutions for that year's Advent of Code puzzles |
| `AdventOfCode.{Year}.Puzzles.Test` | Inputs and solutions for that year's Advent of Code puzzles |
| `AdventOfCode.Console` | Console application to prepare and run the puzzle solutions |
| `AdventOfCode.Web` | Blazor WebAssembly application to run the puzzle solutions |## Setup
This project requires [.NET SDK 5.0](https://dotnet.microsoft.com/download/dotnet/5.0).
To run the Blazor WebAssembly application:
- `dotnet run -p src/AdventOfCode.Web`
- Open `[http://localhost:5000](http://localhost:5000)`To run all puzzle solutions in your console:
- `dotnet run -p src/AdventOfCode.Console --all`
To run the last solution in your console:
- `dotnet run -p src/AdventOfCode.Console --last`
To run a specific solution in your console:
- `dotnet run -p src/AdventOfCode.Console --day [number of day]`
To setup the environment for a new puzzle solution:
- Set your adventofcode.com session cookie for `AdventOfCode.Console` as a user secret:
- `dotnet user-secrets -p AdventOfCode.Console set "SessionCookie" "[your session cookie]"`
- Run setup to create source, test, input and description files for the given day:
- `dotnet run -p aoc2019.ConsoleApp --setup [number of day]`