-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79c898d
commit 2b714cd
Showing
10 changed files
with
96 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@file:JvmName("AdventOfCode2023") | ||
package net.fish.y2023 | ||
|
||
import net.fish.Reflect | ||
import net.fish.Runner | ||
|
||
object AdventOfCode { | ||
val days = Reflect.getDays(2023) | ||
} | ||
|
||
fun main(args: Array<String>) { | ||
// WindowsAnsi.setup() | ||
val day = if(args.isEmpty()) 0 else args[0].toInt() | ||
Runner.run(2023, AdventOfCode.days, day) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package net.fish.y2023 | ||
|
||
import net.fish.Day | ||
import net.fish.resourceLines | ||
|
||
object Day01 : Day { | ||
private val data by lazy { resourceLines(2023, 1) } | ||
|
||
override fun part1() = doPart1(data) | ||
override fun part2() = doPart2(data) | ||
|
||
fun doPart1(data: List<String>): Int = data.size | ||
fun doPart2(data: List<String>): Int = data.size | ||
|
||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
println(part1()) | ||
println(part2()) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package net.fish.y2023 | ||
|
||
import net.fish.Day | ||
import net.fish.resourceLines | ||
|
||
object DayTemplate : Day { | ||
private val data by lazy { resourceLines(2023, 0) } | ||
|
||
override fun part1() = doPart1(data) | ||
override fun part2() = doPart2(data) | ||
|
||
fun doPart1(data: List<String>): Int = data.size | ||
fun doPart2(data: List<String>): Int = data.size | ||
|
||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
println(part1()) | ||
println(part2()) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters