StatePair

fun StatePair(puzzleState: ArrayList<Int>, blankTilePos: Int)

Creates an object that represents a puzzle state (flattened into one dimension, following row-major order) alongside the position of the blank tile in the puzzle grid (zero-based, following row-major order).

Parameters

puzzleState

Puzzle state (flattened into one dimension, following row-major order).

blankTilePos

Position of the blank tile in the puzzle grid (zero-based, following row-major order).