Last active
April 13, 2020 16:02
-
-
Save jonnycaley/2ef8c967921226fe25310c77da5a7c8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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