slide the tiles, restore 1..15 with the blank bottom-right. looks like any scramble should be doable. it isn't: exactly half are unreachable.
read the tiles left-to-right, top-to-bottom, skipping the blank. count inversions: pairs that are out of order (a bigger number before a smaller one). then look at the blank's row, counted from the bottom (1 = bottom row).
for a 4×4 board a scramble is solvable iff inversions + blank-row-from-bottom is odd. every legal slide flips exactly one of those parities, so it can never reach the goal from a board where the sum is even. that's the whole lock.
for odd-width boards (like the 8-puzzle's 3×3) it's simpler: solvable iff the inversion count is even.
boards above are random shuffles; the last one was reached by 200 legal slides from the goal, so it must test solvable — a check on the rule itself.