app
/
com.gonzales.mark.n_puzzle
/
PuzzleUtil
/
Companion
/
manhattan
manhattan
private val
manhattan
:
HashMap
<
Int
,
Int
>
Content copied to clipboard
Maps a state (technically, its hash) to its Manhattan distance vis-à-vis the goal state.