can Move Down
private fun canMoveDown(position: Int, blankTilePos: Int, numColumns: Int): Boolean
Content copied to clipboard
Checks if the given tile can be moved down.
Return
true
if the tile can be moved down; false
, otherwise.
Parameters
position
Position of the tile to be moved (zero-based, following row-major order).
blankTilePos
Position of the blank tile in the puzzle grid (zero-based, following row-major order).
numColumns
Number of columns in the puzzle grid.