Project

General

Profile

« Previous | Next » 

Revision 7a6892e4

Added by Leszek Koltunski almost 2 years ago

Jing: a TablebaseAbstract-based solver finished and working.

View differences:

src/main/java/org/distorted/solvers/SolverJing.java
516 516
    {
517 517
    if( mSolver==null )
518 518
      {
519
      mSolver = ImplementedTablebasesList.createUnpacked(ObjectSignatures.JING_2);
520
      if( mSolver!=null ) mSolver.createTablebase(-1);
519
      mSolver = ImplementedTablebasesList.createPacked(res,ObjectSignatures.JING_2);
521 520
      }
522
/*
523
int[] q= {0,0,0,0, 0,0,0,0,0,0, 0,0,0,0};
524
TBJing jing = new TBJing();
525
int in= jing.getIndex(q);
526
android.util.Log.e("D", "index = "+in);
527

  
528
int[] s = jing.getQuats(0);
529 521

  
530
for(int i=0; i<14; i++) android.util.Log.e("D", "quat = "+i+" : "+s[i]);
531
*/
532 522
    return mSolver!=null ? mSolver.solution(index,null) : null;
533 523
    }
534 524
}  

Also available in: Unified diff