Revision 468e1760
Added by Leszek Koltunski over 2 years ago
| src/main/java/org/distorted/solvers/SolverCuboid323.java | ||
|---|---|---|
| 315 | 315 |
boolean inPlace = isFrontEdgeInItsPlace(edges); |
| 316 | 316 |
|
| 317 | 317 |
//android.util.Log.e("D", "corner_perm_num: "+corner_perm_num+" edge_perm_num: "+edge_perm_num+" inPlace: "+inPlace);
|
| 318 |
//android.util.Log.e("D", "index="+(corner_perm_num + 40320*( (inPlace?0:1) + 2*edge_perm_num)));
|
|
| 318 | 319 |
|
| 319 | 320 |
TBCuboid323.setUpper(mUpper, mUpper^inPlace); |
| 320 | 321 |
|
| 321 |
return corner_perm_num + 20160*( (inPlace?0:1) + 2*edge_perm_num);
|
|
| 322 |
return corner_perm_num + 40320*( (inPlace?0:1) + 2*edge_perm_num);
|
|
| 322 | 323 |
} |
| 323 | 324 |
|
| 324 | 325 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| ... | ... | |
| 467 | 468 |
{
|
| 468 | 469 |
if( mSolver==null ) |
| 469 | 470 |
{
|
| 470 |
mSolver = ImplementedTablebasesList.createUnpacked(ObjectSignatures.CU_323); |
|
| 471 |
if( mSolver!=null ) mSolver.createTablebase(-1); |
|
| 471 |
mSolver = ImplementedTablebasesList.createPacked(os,ObjectSignatures.CU_323); |
|
| 472 |
//mSolver = ImplementedTablebasesList.createUnpacked(ObjectSignatures.CU_323); |
|
| 473 |
//if( mSolver!=null ) mSolver.test(); |
|
| 472 | 474 |
} |
| 473 | 475 |
|
| 474 |
return null;//mSolver!=null ? mSolver.solution(index,null,os) : null;
|
|
| 476 |
return mSolver!=null ? mSolver.solution(index,null,os) : null; |
|
| 475 | 477 |
} |
| 476 | 478 |
} |
| 477 | 479 |
|
Also available in: Unified diff
CU_323 solver: bugfixes.