JeremyEspresso / AoC-Template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AoC-2022


Use this repository as a template to run your C# AoC solutions.

Example setup

public class Day4 : BaseChallenge
{
    private readonly string Input;

    public Day4()
    {
        Input = LoadInput(File.ReadAllText, nameof(Day4));
    }

    public override string SolvePartOne()
    {
        throw new NotImplementedException();
    }

    public override string SolvePartTwo()
    {
        throw new NotImplementedException();
    }
}

Make sure to place the input files in the right folder. And make sure to set them to "copy if newer" so that they get copied to the output folder accordingly.


Running

Running the application without any arguments will run all Days in a benchmark

Adding a day: Day1 as an argument will run that specific day and write the output to the console

Add --bench as an argument after adding your day argument will run the specific day as a benchmark

About

License:MIT License


Languages

Language:C# 100.0%