You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+89-53Lines changed: 89 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,15 @@
8
8
9
9
## Advantages
10
10
11
-
In order to solve your puzzle, you might need the debugger from time to time,
12
-
especially as the puzzles become harder.
11
+
In order to solve your puzzle, you might need the debugger from time to time, especially as the puzzles become harder.
13
12
14
-
This template is built around test projects, in order to take advatage of the
15
-
debugging possibilities and TDD if you want to.
13
+
This template is built around test projects, in order to take advatage of the debugging possibilities and TDD if you want to.
14
+
15
+
Here are also a bunch of features offered by the template:
16
+
17
+
- Retrieval of the puzzle input localy or remotely
18
+
- Testing of the puzzle examples
19
+
- Conditionnaly skip the tests of a puzzle if wanted
16
20
17
21
## Usage
18
22
@@ -35,27 +39,41 @@ You will then have to implement three different logics:
35
39
2.**The logic for the first part of the puzzle**
36
40
3.**The logic for the second part of the puzzle**
37
41
38
-
> For example, if the first part of the puzzle is "Given a list of integers, find the greatest one" and the second one
39
-
> "Now find the sum of them", we can do the following:
40
-
>
41
-
> ```csharp
42
-
>publicclassSolver : Solver<int[], int>
43
-
> {
44
-
> protectedoverridestringInputPath=>"input.txt";
45
-
>
46
-
> publicoverrideintPartOne(int[] input)
47
-
> =>input.Max();
48
-
>
49
-
> publicoverrideintPartTwo(int[] input)
50
-
> =>input.Sum();
51
-
>
52
-
> publicoverrideint[] ReadInput(stringinputPath)
53
-
> =>File
54
-
> .ReadAllLines(inputPath)
55
-
> .Select(int.Parse)
56
-
> .ToArray();
57
-
> }
58
-
> ```
42
+
For example, if the first part of the puzzle is "Given a list of integers, find the greatest one" and the second one "Now find the sum of them", we can do the following:
0 commit comments