Change trailhead values to private.
All checks were successful
Solve / example-action (push) Successful in 3m0s
All checks were successful
Solve / example-action (push) Successful in 3m0s
This commit is contained in:
parent
6f69aae304
commit
2a5388e90b
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user