Rename method
This commit is contained in:
parent
e85d94ff96
commit
a94bb545b3
2 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ class GameController {
|
|||
}
|
||||
}
|
||||
ActionResponse.OpenNeighbors -> {
|
||||
minefieldHandler.openNeighborsOf(target.id)
|
||||
minefieldHandler.openOrFlagNeighborsOf(target.id)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ class MinefieldHandler(
|
|||
}
|
||||
}
|
||||
|
||||
fun openNeighborsOf(index: Int) {
|
||||
fun openOrFlagNeighborsOf(index: Int) {
|
||||
field.getOrNull(index)?.run {
|
||||
val neighbors = field.filterNeighborsOf(this)
|
||||
val flaggedCount = neighbors.count { it.mark.isFlag() }
|
||||
|
|
Loading…
Reference in a new issue