diff --git a/day10.kts b/day10.kts index cc342a3..9029a81 100755 --- a/day10.kts +++ b/day10.kts @@ -2,7 +2,7 @@ import java.util.Scanner - class TrailHead(var x: Int, var y: Int, private val map: Map) { + class TrailHead(private val x: Int, private val y: Int, private val map: Map) { private val peaks = mutableMapOf, Int>() fun getScore(): Int { if (this.peaks.isEmpty()) {