is Solved
Checks if the current puzzle state is equal to the goal state.
Return
true
if the current puzzle state is equal to the goal state; false
, otherwise.
Parameters
puzzleState
Puzzle state (flattened into one dimension, following row-major order).
goalPuzzleState
Goal state (flattened into one dimension, following row-major order).