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

This commit is contained in:
Logiar 2024-12-11 14:19:03 +01:00
parent 6f69aae304
commit 2a5388e90b
Signed by: Logiar
SSH Key Fingerprint: SHA256:tq77C31em1ZG4oELIHC3k62wq5UzPSXmhqH8g62whIY

View File

@ -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<Pair<Int, Int>, Int>()
fun getScore(): Int {
if (this.peaks.isEmpty()) {