Companion
object Companion
Content copied to clipboard
Object containing the methods for moving the tiles in the puzzle grid.
Functions
canMoveDown
Link copied to clipboard
private fun canMoveDown(position: Int, blankTilePos: Int, numColumns: Int): Boolean
Content copied to clipboard
canMoveLeft
Link copied to clipboard
private fun canMoveLeft(position: Int, blankTilePos: Int, numColumns: Int): Boolean
Content copied to clipboard
canMoveRight
Link copied to clipboard
private fun canMoveRight(position: Int, blankTilePos: Int, numColumns: Int): Boolean
Content copied to clipboard
canMoveTile
Link copied to clipboard
fun canMoveTile(direction: FlingDirection, position: Int, blankTilePos: Int, numColumns: Int): Boolean
Content copied to clipboard
isLeftEdgeTile
Link copied to clipboard
isRightEdgeTile
Link copied to clipboard