Mistakenly didn't add files?

This commit is contained in:
Logiar 2024-12-02 14:06:27 +01:00
parent 9edfedec6b
commit 5f4440aae3
Signed by: Logiar
SSH Key Fingerprint: SHA256:tq77C31em1ZG4oELIHC3k62wq5UzPSXmhqH8g62whIY
3 changed files with 8 additions and 6 deletions

View File

@ -15,7 +15,9 @@ jobs:
distribution: 'corretto' # See 'Supported distributions' for available options
java-version: '21'
- uses: https://github.com/fwilhe2/setup-kotlin@main
- name: Day 1
run: kotlin puzzle1.kts
- name: Day 2
run: kotlin puzzle2.kts
- name: Solutions
run: |
for script in $(ls *.kts | sort); do
echo "Running $script"
kotlin $script
done

View File

@ -2,7 +2,7 @@ import java.io.File
import java.util.Scanner
import kotlin.math.abs
val scanner = Scanner(File("puzzle1input.txt"))
val scanner = Scanner(File("day01input.txt"))
val firstList = mutableListOf<Int>()
val secondList = mutableListOf<Int>()
var secondMap = mutableMapOf<Int, Int>()

View File

@ -3,7 +3,7 @@ import java.util.Scanner
import javax.print.attribute.standard.NumberUpSupported
import kotlin.math.abs
val scanner = Scanner(File("puzzle2input.txt"))
val scanner = Scanner(File("day02input.txt"))
var safelines = 0
var dampenedsafelines = 0
while (scanner.hasNextLine()) {