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

C

canMove(Puzzle.Direction) - Method in class puzzle.State
Method that checks to see if moving in a direction is allowed (within bounds of puzzle).
canMoveFailTest() - Method in class puzzle.StateTests
Constructs a State and checks if moving in an illegal direction is not allowed.
canMoveSucceedTest() - Method in class puzzle.StateTests
Constructs a State and checks if moving in a legal direction is allowed.
checkForWin() - Method in class puzzle.Puzzle
Checks to see if the player has won.
column - Variable in class puzzle.NumberButton
 
compareTo(State) - Method in class puzzle.State
 
cost - Variable in class puzzle.State
 
cost(int[][]) - Static method in class puzzle.State
Estimates the cost in moves of solving a state.
costTest() - Method in class puzzle.StateTests
Constructs a 2D array of int values and checks if cost estimate is what it should be.
B C D E G H I M N P R S T V 
Skip navigation links