A D I M N R S T

A

apply(String, String) - Static method in class MagicCubeNdSolve
Applies the given move sequence to the puzzle, returning a new puzzle string with the same formatting as the input puzzleString.

D

d(String) - Static method in class MagicCubeNdSolve
Returns the number of dimensions d of the nd puzzle.

I

isSane(String) - Static method in class MagicCubeNdSolve
Tells whether the given string represents an nd puzzle for some n, d (possibly taken apart and put back together wrong, possibly with some corners inside out).
isSolvable(String) - Static method in class MagicCubeNdSolve
Tells whether the given (assumed to be sane) puzzle string is solvable.
isSolvable(String, int, int, PrintWriter, int) - Static method in class MagicCubeNdSolve
Tells whether the given (assumed to be sane) puzzle string is solvable.
isSolved(String) - Static method in class MagicCubeNdSolve
Tells whether the given (assumed to be solvable) puzzle string is already solved.

M

MagicCubeNdSolve - Class in <Unnamed>
Solves the d-dimensional analogue of Rubik's cube.
main(String[]) - Static method in class MagicCubeNdSolve
Full featured test/demo program.

N

n(String) - Static method in class MagicCubeNdSolve
Returns the length n of the nd puzzle.
newPuzzle(int, int) - Static method in class MagicCubeNdSolve
Returns a string representing a pristine nd puzzle, formatted nicely with A,B,C,...

R

readPuzzle(BufferedReader, int) - Static method in class MagicCubeNdSolve
Reads a puzzle string.
reformatPuzzleString(String, String) - Static method in class MagicCubeNdSolve
Reformats the non-space chars of puzzleString to look like template.

S

scramble(String, int, int, Random, int) - Static method in class MagicCubeNdSolve
Returns a random number from minScrambleChen to maxScrambleChen of random 90-degree twists that can be applied to the given puzzle (see apply).
simple_main(String[]) - Static method in class MagicCubeNdSolve
Simple test/demo program.
solve(String) - Static method in class MagicCubeNdSolve
Solves the puzzle.
solve(String, int, int, PrintWriter, int) - Static method in class MagicCubeNdSolve
Solves the puzzle.

T

trivial_main(String[]) - Static method in class MagicCubeNdSolve
Trivial test/demo program.

A D I M N R S T