can Move Up
Checks if the given tile can be moved up.
Return
true
if the tile can be moved up; 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.