Change trailhead values to private.
All checks were successful
Solve / example-action (push) Successful in 3m0s

This commit is contained in:
2024-12-11 14:19:03 +01:00
parent 6f69aae304
commit 2a5388e90b

View File

@@ -2,7 +2,7 @@
import java.util.Scanner 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<Pair<Int, Int>, Int>() private val peaks = mutableMapOf<Pair<Int, Int>, Int>()
fun getScore(): Int { fun getScore(): Int {
if (this.peaks.isEmpty()) { if (this.peaks.isEmpty()) {