public class RubiksCube
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
MAXSOLLENGTH
Maximum length of solution that can be safed.
|
AllMoves[] |
solution
Solution array that contains all performed moves and the final solution after removing redundancy.
|
int |
solutionIndex
Index of next empty element in solution array (current element that can be written to).
|
Constructor and Description |
---|
RubiksCube()
Constructor that initializes cube in NULL-state.
|
RubiksCube(AllMoves[] maneuver)
Constructor that initializes cube in solved-state and applies given maneuver to cube.
|
public final int MAXSOLLENGTH
public int solutionIndex
public AllMoves[] solution
public RubiksCube()
public RubiksCube(AllMoves[] maneuver)
maneuver
- maneuver to apply to cube after initialization.