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
+19-5Lines changed: 19 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -20,17 +20,19 @@ How cool is that?
20
20
Right after the [@actions-user][actions-user] actor pushes the second commit to your repository, you're ready to clone it within the IntelliJ IDEA.
21
21
22
22
From now, everything's in your hands!
23
-
Join the [Advent of Code][aoc] contest, solve the Day O1 as soon as it is published.
23
+
Join the [Advent of Code][aoc] contest, solve the *Day 01* as soon as it is published.
24
24
25
25
For the following days, copy the `Day01.kt` solution file and increment the day number.
26
26
27
+
> **Note**
28
+
>
27
29
> Remember to join the Kotlin contest!
28
30
>
29
-
> To do that, edit your project's _About_ section with ⚙️ icon and add the `aoc-2022-in-kotlin` topic to your project.
31
+
> To do that, edit your project's _About_ section with ⚙️ icon and add the `aoc-2023-in-kotlin` topic to your project.
30
32
>
31
33
> **We will find your repository and count you in our giveaway.**
32
34
33
-
## Content
35
+
## Setup
34
36
35
37
After you create a new project based on the current template repository using the **Use this template** button, a bare minimal scaffold will appear in your GitHub account with the following structure:
36
38
@@ -42,9 +44,11 @@ After you create a new project based on the current template repository using th
42
44
├── gradle* Gradle wraper files
43
45
└── src
44
46
├── Day01.kt An empty implementation for the first AoC day
47
+
├── Utils.kt A set of utility methods shared across your days
48
+
│
49
+
│ (files needed to be manually created)
45
50
├── Day01.txt An empty file for the Day 01 input data
46
-
├── Day01_test.txt An optional Day 01 test input data used for checks
47
-
└── Utils.kt A set of utility methods shared across your days
51
+
└── Day01_test.txt An optional Day 01 test input data used for checks
48
52
```
49
53
50
54
> **Note**
@@ -67,6 +71,16 @@ fun main() {
67
71
}
68
72
```
69
73
74
+
## Running
75
+
76
+
To call the algorithm you're implementing, click on the green Play button next to the `fun main()` definition.
77
+
78
+

79
+
80
+
> **Warning**
81
+
>
82
+
> Before running tasks or tests, make sure to create relevant files, like: `src/Day01.txt` or `src/Day01_test.txt`.
83
+
70
84
The [`Utils.kt`][file:utils] file also contains the `String.md5()` method for generating MD5 hash out of the given string and expects more helper functions for the sake of the [KISS principle][kiss].
71
85
72
86
Each puzzle describes some test conditions, a small portion of the information that helps check if the produced value for the given test input is valid.
0 commit comments