get Valid Shuffled State
private fun getValidShuffledState()
Content copied to clipboard
Generates a valid shuffling of the puzzle tiles.
A shuffling is considered valid if the resulting state is not equivalent to the goal state and if it is solvable (that is, it has an even number of inversions).