@@ -4,14 +4,14 @@ puzzle within a single solution. Each day is automatically registered to a
44central location, with built-in support for BenchmarkDotNet, downloading input files, and submitting answers.
55## Quick Start
66* Begin by adding this NuGet package to your project ` AdventOfCodeSupport ` .
7- * Add a folder to your project for the current year i.e. ` 2023 ` .
7+ * Add a folder to your project for the current year i.e. ` 2024 ` .
88* Add a subfolder to the year called ` Inputs ` .
99* Place each day's input into that folder named by day with 2 digits ` 01.txt ` .
10- * Create a class in the ` 2023 ` folder called ` Day01.cs `
10+ * Create a class in the ` 2024 ` folder called ` Day01.cs `
1111``` text
1212Project/
1313├── Program.cs
14- └── 2023 /
14+ └── 2024 /
1515 ├── Day01.cs
1616 ├── Day02.cs
1717 └── Inputs/
@@ -21,7 +21,7 @@ Project/
2121``` csharp
2222using AdventOfCodeSupport ;
2323
24- namespace Foo ._2023 ;
24+ namespace Foo ._2024 ;
2525
2626public class Day01 : AdventBase
2727{
@@ -65,8 +65,8 @@ using AdventOfCodeSupport;
6565
6666var solutions = new AdventSolutions ();
6767var today = solutions .GetMostRecentDay ();
68- // var day3 = solutions.GetDay(2023 , 3);
69- // var day4 = solutions.First(x => x.Year == 2023 && x.Day == 4);
68+ // var day3 = solutions.GetDay(2024 , 3);
69+ // var day4 = solutions.First(x => x.Year == 2024 && x.Day == 4);
7070today .Part1 ().Part2 ();
7171// today.Benchmark();
7272```
@@ -79,20 +79,20 @@ the structure show below.
7979``` text
8080Project/
8181├── Program.cs
82- ├── Year2023Day01 .cs
83- ├── Year2023Day02 .cs
82+ ├── Year2024Day01 .cs
83+ ├── Year2024Day02 .cs
8484└── Inputs/
85- ├── 202301 .txt
86- └── 202302 .txt
85+ ├── 202401 .txt
86+ └── 202402 .txt
8787```
8888You would instantiate your ` AdventSolutions ` as follows:
8989``` csharp
9090using AdventOfCodeSupport ;
9191
9292var solutions = new AdventSolutions (" Inputs/yyyydd.txt" , " YearyyyyDaydd.cs" );
9393var today = solutions .GetMostRecentDay ();
94- // var day3 = solutions.GetDay(2023 , 3);
95- // var day4 = solutions.First(x => x.Year == 2023 && x.Day == 4);
94+ // var day3 = solutions.GetDay(2024 , 3);
95+ // var day4 = solutions.First(x => x.Year == 2024 && x.Day == 4);
9696today .Part1 ().Part2 ();
9797// today.Benchmark();
9898```
@@ -195,7 +195,7 @@ public class SampleTests
195195 [Fact ]
196196 public void InputTest_CustomInput_TextLoaded ()
197197 {
198- var day = _solutions .GetDay (2023 , 4 );
198+ var day = _solutions .GetDay (2024 , 4 );
199199 day .SetTestInput (" 123" );
200200 Assert .Equal (" 42" , day .Part1Answer );
201201 Assert .StartsWith (" 123" , day .GetBag ()[" Test" ]);
0 commit comments