Skip to content

Instantly share code, notes, and snippets.

@jonnycaley
Last active April 13, 2020 16:02
Show Gist options
  • Save jonnycaley/2ef8c967921226fe25310c77da5a7c8c to your computer and use it in GitHub Desktop.
Save jonnycaley/2ef8c967921226fe25310c77da5a7c8c to your computer and use it in GitHub Desktop.
fun getMineCells(): List<Cell> {
val mineCells = mutableListOf<Cell>()
gameBoardCells.forEach { cell ->
if (cell.isMine())
mineCells.add(cell)
}
return mineCells
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment