GithubHelp home page GithubHelp logo

aoc-template's Introduction

aoc dotnet

Provides a template for running and benchmarking your Advent of Code solutions in C# and F#. It includes a command-line tool that allows you to easily run your solutions for specific days or for all days. The tool can also be used to benchmark your solutions to measure their performance.

Usage

Options

Option Description Default Value
--lang <lang> The language to run in. c#
--days <days> The days to run. all
--version Show version information.
-?, -h, --help Show help and usage information.

Commands

Command Description
run Run without benchmark.
bench Run with benchmark.

Example Setup

Create a class for each day of the Advent of Code challenge. The class should inherit from the BaseChallenge class and implement the SolvePartOne and SolvePartTwo methods.

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();
    }
}

Troubleshooting

  • Make sure to place the input files in the right folder. The input files should be named dayXX.txt, where XX is the day number.
  • Make sure to set input files to "copy if newer" so that they get copied to the output folder accordingly.

aoc-template's People

Contributors

6uane avatar niklasstich avatar jeremyespresso avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.