|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kociemba.twophase.Search
public class Search
Class Search implements the Two-Phase-Algorithm.
Constructor Summary | |
---|---|
Search()
|
Method Summary | |
---|---|
static java.lang.String |
solution(java.lang.String facelets,
int maxDepth,
long timeOut,
boolean useSeparator)
Computes the solver string for a given cube. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Search()
Method Detail |
---|
public static java.lang.String solution(java.lang.String facelets, int maxDepth, long timeOut, boolean useSeparator)
facelets
- is the cube definition string, see Facelet
for the format.maxDepth
- defines the maximal allowed maneuver length. For random cubes, a maxDepth of 21 usually will return a
solution in less than 0.5 seconds. With a maxDepth of 20 it takes a few seconds on average to find a
solution, but it may take much longer for specific cubes.timeOut
- defines the maximum computing time of the method in seconds. If it does not return with a solution, it returns with
an error code.useSeparator
- determines if a " . " separates the phase1 and phase2 parts of the solver string like in F' R B R L2 F .
U2 U D for example.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |