Skip navigation links
B C D E G H I M N P R S T V 

S

scramble() - Method in class puzzle.Puzzle
Method scrambles the tiles in a puzzle.
scramble(int) - Method in class puzzle.Puzzle
Private utility method to scramble the puzzle by making a random number of moves equal to the input parameter times.
setNumber(int) - Method in class puzzle.NumberButton
Mutator that changes the number of the button and updates its label.
SIZE - Variable in class puzzle.Puzzle
Constant member giving number of rows and columns.
solve(State) - Static method in class puzzle.Solver
Solves a puzzle starting at a given State.
Solver - Class in puzzle
Class to solve an instance of a Puzzle.
Solver() - Constructor for class puzzle.Solver
Default constructor for Solver tries to solve a new 4 x 4 Puzzle.
Solver(Puzzle) - Constructor for class puzzle.Solver
Constructor for Solver that tries to solve the given Puzzle.
State - Class in puzzle
The State class holds a representation of one of the (many) states a Puzzle can be in.
State(int[][], Puzzle.Direction, State, int, int) - Constructor for class puzzle.State
Constructor sets member variables and calculates cost.
state - Variable in class puzzle.State
 
StateTests - Class in puzzle
Class holding JUnit 5 test cases to test State functionality.
StateTests() - Constructor for class puzzle.StateTests
 
B C D E G H I M N P R S T V 
Skip navigation links