Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
M
N
O
P
R
S
T
U
V
W
X
Y
P
Piece
- Class in
<Unnamed>
Piece represents a rectangular piece in the puzzle.
Piece(int, int, int, int, char)
- Constructor for class
Piece
Constructor: initializes a piece that is not yet part of any puzzle
Piece(int, int, int, int, char, String)
- Constructor for class
Piece
Private Constructor: used for cloning, does no error checking
PieceMove
- Class in
<Unnamed>
PieceMove represents the movement of one piece in the puzzle.
PieceMove(Piece, Piece, char, int)
- Constructor for class
PieceMove
Constructor: initializes the data members with the provided values
pieceName(int)
- Static method in class
Puzzle
Returns a name for the piece with the specified number
pieces
- Variable in class
Puzzle
prettyString()
- Method in class
PieceMove
Makes a nice human readable string representation of the move
prettyString()
- Method in class
Puzzle
Returns a string version of the puzzle suitable for display to the user
print(String)
- Static method in class
MP4
Prints the message to stdout
printFinalReport(PuzzleSolution)
- Static method in class
MP4
Prints out information about the solution (or lack of one)
printInitialReport(PuzzleLoader)
- Static method in class
MP4
Prints out the results of the file load operation.
Puzzle
- Class in
<Unnamed>
Puzzle is used to represent a single puzzle state.
Puzzle(int, int)
- Constructor for class
Puzzle
Constructor: initializes an empty puzzle
Puzzle(int, int, ArrayList, Piece[][], ArrayList)
- Constructor for class
Puzzle
Private Constructor: used for cloning, no error checking is performed
puzzle
- Variable in class
PuzzleLoader
PuzzleException
- Exception in
<Unnamed>
Signals an error in loading or solving the puzzle.
PuzzleException(String)
- Constructor for exception
PuzzleException
Constructor: saves the provided message
PuzzleLoader
- Class in
<Unnamed>
PuzzleLoader reads and processes a puzzle definition file.
PuzzleLoader(String)
- Constructor for class
PuzzleLoader
Constructor: reads a puzzle definition from the file with the specified file name and creates a puzzle object from it, warnings and error are stored in the object.
puzzles
- Variable in class
PuzzleSolution
PuzzleSolution
- Class in
<Unnamed>
PuzzleSolution searches the provided initial puzzle to find the shortest solution.
PuzzleSolution(Puzzle)
- Constructor for class
PuzzleSolution
Constructor: searches for a solution to the initial puzzle.
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
M
N
O
P
R
S
T
U
V
W
X
Y