Companion
object Companion
Content copied to clipboard
Companion object containing the methods related to the puzzle state.
Properties
Functions
countInversions
Link copied to clipboard
private fun countInversions(puzzleState: ArrayList<Int>, blankTileMarker: Int): Int
Content copied to clipboard
getManhattan
Link copied to clipboard
isBlankTile
Link copied to clipboard
isSolvable
Link copied to clipboard
fun isSolvable(puzzleState: ArrayList<Int>, blankTileMarker: Int): Boolean
Content copied to clipboard