From 2a5388e90b9dfd7b6124e561cd919035e1b05a61 Mon Sep 17 00:00:00 2001 From: Logiar Date: Wed, 11 Dec 2024 14:19:03 +0100 Subject: [PATCH] Change trailhead values to private. --- day10.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {