Defines a tile puzzle state.
- Todo:
- Is both equality and inequality actually needed?
TilePuzzleState::TilePuzzleState |
( |
| ) |
|
Creates an empty tile puzzle with zero in all dimensions.
TilePuzzleState::~TilePuzzleState |
( |
| ) |
|
|
virtual |
Destructor for a sliding tile puzzle state. Does nothing.
TilePuzzleState::TilePuzzleState |
( |
const unsigned |
rows, |
|
|
const unsigned |
cols |
|
) |
| |
Creates a tile puzzle of the given dimensions.
- Parameters
-
rows | The number of rows in the puzzle. |
cols | The number of columns in the puzzle. |
TilePuzzleState::TilePuzzleState |
( |
const std::vector< unsigned > & |
perm, |
|
|
const unsigned |
rows, |
|
|
const unsigned |
cols |
|
) |
| |
Creates a tile puzzle from the given permutation with the given dimensions.
- Parameters
-
perm | The permutation as the basis of the puzzle. |
rows | The number of rows in the puzzle. |
cols | The number of columns in the puzzle. |
unsigned TilePuzzleState::blank_loc |
Location of the blank (or 0)
unsigned TilePuzzleState::num_cols |
Number of columns in the state.
unsigned TilePuzzleState::num_rows |
Number of rows in the state.
std::vector<unsigned> TilePuzzleState::permutation |
The permutation representation of the state.
The documentation for this class was generated from the following files: