Companion

object Companion

Companion object containing the methods for shuffling the puzzle tiles.

Functions

getValidShuffledState
Link copied to clipboard
fun getValidShuffledState(puzzleState: ArrayList<Int>, goalPuzzleState: ArrayList<Int>, blankTileMarker: Int): StatePair
Returns the puzzle state and the position of the blank tile after a valid shuffling of the puzzle tiles.