Project

General

Profile

« Previous | Next » 

Revision 02888ed5

Added by Leszek Koltunski about 1 year ago

Progress with the Diamond Skewb solver.

View differences:

src/main/java/org/distorted/solvers/SolverSkewbDiamond.java
485 485
    {
486 486
    if( mSolver==null )
487 487
      {
488
      mSolver = ImplementedTablebasesList.createUnpacked(ObjectType.DIAM_2);
489
      if( mSolver!=null ) mSolver.createTablebase();
488
      mSolver = ImplementedTablebasesList.createPacked(res,ObjectType.DIAM_2);
490 489
      }
491 490

  
492 491
    return mSolver!=null ? mSolver.solution(index) : null;
492

  
493
     /*
494

  
495
    TablebasesSkewbDiamond tb = new TablebasesSkewbDiamond();
496
    int[] q = {0,0,3,3,3,0,  3,0,2,0,0,0,0,3};
497
    int i= tb.getIndex(q);
498
    android.util.Log.e("D", "AAAA index="+i);
499
    int[] a = tb.getQuats(i);
500
    android.util.Log.e("D", "AAAA quats="+a[0]+" "+a[1]+" "+a[2]+" "+a[3]+" "+a[4]+" "+a[5]+" "+
501
       a[6]+" "+a[7]+" "+a[8]+" "+a[9]+" "+a[10]+" "+a[11]+" "+a[12]+" "+a[13]);
502
    int j= tb.getIndex(a);
503
    android.util.Log.e("D", "AAAA index="+j);
504

  
505
    return null;
506

  
507
     */
493 508
    }
494 509
}  
495 510

  

Also available in: Unified diff