Skip to content

Advent Of Code, yearly puzzle extravaganza in the days leading up to Christmas.

Notifications You must be signed in to change notification settings

GoldenQubicle/AdventOfCode

Repository files navigation

AdventOfCode

Repo for AoC, thusfar 2015, 2016, 2020, 2021 & 2024 are complete.

Also contains small CLI for getting things up and running.
Example usage; .\CLI.exe scaffold -y 2015 -d 2 -u -c hello:world

This command will create Day02.cs in the AoC2015 project, as well as create Day02test.cs in AoC2015Test project with a single test case generated for part 1; TestCase[("hello", "world")]. In addition it will get the input for that day provided aoctoken.txt file is present containing the session token.

Available commands and their flags.

  • scaffold, create .cs file for day with option for unit test file
    -y Required. The year, from 2015 to 2024
    -d Required. The day, from 1 to 25
    -u Creates a unit test file
    -e Mutually exclusive with -c. Sets the expected value for example part 1 and reads input from file.
    -c Mutually exclusive with -e. Generate test cases for part 1 in the format of input:outcome.

  • getinput, retrieves input from site
    -y Required. The year, from 2015 to 2024
    -d Required. The day, from 1 to 25
    -s Required. The session token for adventofcode.com

  • runday, run an individual day
    -y Required. The year, from 2015 to 2024
    -d Required. The day, from 1 to 25
    -p Part one or two, or both if not specified

CLI made with CommandLineParser

About

Advent Of Code, yearly puzzle extravaganza in the days leading up to Christmas.

Topics

Resources

Stars

Watchers

Forks

Languages