Skip to content

Instantly share code, notes, and snippets.

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