Utilities for working with sliding puzzles, specifically arbitrary-sized variants of the 15 puzzle.
- Supports arbitrary-sized
WxHsliding puzzles with theSlidingPuzzletrait, implemented by a generalPuzzletype, andPuzzle<W, H>for efficient puzzles of small fixed size - Represent sequences of moves with the
AlgorithmandAlgorithmSlicetypes - Puzzle scrambling with the
Scramblertrait, implemented by several scrambling algorithms (RandomState,RandomMoves, etc.) - Solvability checking with the
SolvedStatetrait - Arbitrary puzzle color schemes with the
Label,Coloring, andColorSchemetraits - SVG rendering of puzzles
- Efficient optimal solvers for small puzzles in single-tile and multi-tile metrics
| Feature | Default | Description |
|---|---|---|
palette |
no | Color schemes, SVG rendering |
serde |
no | Serialize/Deserialize on most types |
thread_rng |
yes | Scrambling using rand's thread-local RNG |