Revision 4fd36883
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/solvers/SolverSkewb.java | ||
---|---|---|
281 | 281 |
if( (total%3)!=0 ) return ERROR_CORNER_TWISTED; |
282 | 282 |
int totalTwist = twist[0]+ 3*(twist[1]+ 3*(twist[2]+ 3*(twist[3]+ 3*(twist[4]+ 3*(twist[5]+ 3*twist[6]))))); |
283 | 283 |
|
284 |
int locationOfFree0 = TBSkewb.computeLocation(quats[1]); |
|
284 |
int locationOfFree0 = TBSkewb.computeLocation(0,quats[1]);
|
|
285 | 285 |
|
286 | 286 |
return center_perm_num+ 360*(totalTwist + 2187*locationOfFree0); |
287 | 287 |
} |
... | ... | |
398 | 398 |
{ |
399 | 399 |
if( mSolver==null ) |
400 | 400 |
{ |
401 |
mSolver = ImplementedTablebasesList.createUnpacked(ObjectSignatures.SKEW_2);
|
|
402 |
|
|
401 |
mSolver = ImplementedTablebasesList.createPacked(res,ObjectSignatures.SKEW_2);
|
|
402 |
/* |
|
403 | 403 |
if( mSolver!=null ) |
404 | 404 |
{ |
405 |
mSolver.createTablebase(2); |
|
406 |
// mSolver.pack(); |
|
405 |
mSolver.createTablebase(-1); |
|
406 |
mSolver.pack(); |
|
407 |
//mSolver.test(); |
|
407 | 408 |
} |
409 |
|
|
410 |
*/ |
|
408 | 411 |
} |
409 | 412 |
|
410 | 413 |
return mSolver!=null ? mSolver.solution(index,null) : null; |
Also available in: Unified diff
Progess with Skewb solver.