Shuffle Runnable
class ShuffleRunnable(handler: Handler, tilePosition: Int, numTiles: Int) : Runnable
Content copied to clipboard
Runnable class related to shuffling the puzzle tiles.
Parameters
handler
Allows sending and processing Message
and Runnable
objects associated with a thread's MessageQueue
.
tilePosition
Position of the tile (zero-based, following row-major order).
numTiles
Number of tiles in the puzzle grid.
Constructors
ShuffleRunnable
Link copied to clipboard
Creates a runnable class related to shuffling the puzzle tiles.