isRightEdgeTile

private fun isRightEdgeTile(position: Int, numColumns: Int): Boolean

Checks if the given tile is located on the last column of the puzzle grid.

Return

true if the given tile is located on the first column of the puzzle grid; false, otherwise.

Parameters

position

Position of the tile to be moved (zero-based, following row-major order).

numColumns

Number of columns in the puzzle grid.