Skip to content

Commit 4da49b0

Browse files
committed
Update the Advent of Code file template to match the current project structure
1 parent 3338489 commit 4da49b0

File tree

6 files changed

+51
-15
lines changed

6 files changed

+51
-15
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.gradle
22
.idea
3+
!.idea/file.template.settings.xml
4+
!.idea/fileTemplates
35
.kotlin/
46
build
57
src/main/resources/**/*.txt

.idea/file.template.settings.xml

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/fileTemplates/Advent of Code.kt

Lines changed: 13 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/fileTemplates/Advent of Code.kt.child.0.kt

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ While I'm trying to learn and improve my [idiomatic Kotlin](https://kotlinlang.o
2121
that. I try to us a programming style matching to the problem. Sometimes that's more functional, sometimes it's object
2222
oriented or even procedural if that's more expressive in a situation.
2323

24+
## File Template
25+
26+
There is a file template for IntelliJ IDEA that creates...
27+
28+
* A new source file containing a main function and an initial implementation of [`AdventOfCode`](src/main/kotlin/de/ronny_h/aoc/AdventOfCode.kt)
29+
* An empty text file in [resources](src/main/resources) for the day's puzzle input
30+
* A test class in the test source set containing assertions for part one and two
31+
32+
**Using the template**
33+
34+
In IntelliJ IDEA, in the the [source directory](src)'s context menu, choose:
35+
36+
`New > Advent of Code`
37+
2438
## Kotlin Resources
2539

2640
If you're stuck with Kotlin-specific questions or anything related to this template, check out the following resources:

0 commit comments

Comments
 (0)