/AoC2021

Programs for Advent of Code 2021

Primary LanguageC#MIT LicenseMIT

AoC2021

Programs for Advent of Code 2021 Warning: contains quickly written code that has not been mostly cleaned and refactored.

How to use

Enter the number for the day you want to run, and enter the input. Once you do that, type in "end". You can paste the input if your terminal allows it.
For CMD: Right click the top bar and select Edit>Paste

Or if you're one of those piping types you can put your input in a text file in a format like this:

1
199
200
208
210
200
207
240
269
260
263
end
2
forward 5
down 5
forward 8
up 3
down 8
forward 2
end
3
00100
11110
10110
10111
10101
01111
00111
11100
10000
11001
00010
01010
end
0

To use this with batch, do type input.txt | AoC2021.exe
This will run the first three programs.
Be sure to keep in the last newline.