Skip to content

Advent of Code 2020 solved with C#. Work in progress.

License

Notifications You must be signed in to change notification settings

flerka/adventofcode-2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Advent Of Code 2020 with C#

Work is currently in progress and may be rewritten later in another language.

This repository contains my solutions for Advent of code 2020 🎄. All tasks are solved with C# and have unit tests to validate them.

I tried solving all tasks using only .Net 6 without external libraries. You can run any solution from the corresponding test.

I made a point not to share any code between parts one and two.

Navigation

In project adventofcode-2020 you can find solution algorithms and in adventofcode-2020.Tests you can find tests that run said solutions. I store the first and the second parts in different folders. The same structure applies to both projects.

You can find input data files and input parsers code in adventofcode-2020.Tests project. To use your input data instead of mine, you should update the data file you can find in the same folder as a test runner. For example - data file for the day one part one.

How to run

  1. Install .Net 6.

  2. Clone my repository.

  3. Inside code folder run in console

    dotnet test --filter "DisplayName~Task1_"

    Task1_ should be replaced with the task number you want to run.

About

Advent of Code 2020 solved with C#. Work in progress.

Topics

Resources

License

Stars

Watchers

Forks

Languages