State Pair
Pair representing 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).
Note that, although the position of the blank tile can be inferred from the puzzle state, it is being tracked in the interest of efficiency (that is, to avoid linear searching).
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).
Constructors
StatePair
Link copied to clipboard