Project

General

Profile

« Previous | Next » 

Revision 5a6413e7

Added by Leszek Koltunski over 1 year ago

Pyraminx Diamond solver: Abstract version finished.

View differences:

build.gradle
16 16
        minSdkVersion 21
17 17
        targetSdkVersion 33
18 18
        versionCode 74
19
        versionName "1.12.6_internal"
19
        versionName "1.12.6"
20 20
    }
21 21

  
22 22
    buildTypes {
src/main/java/org/distorted/solvers/SolverPyraminxDiamond.java
245 245
    if( even1^even2 ) return ERROR_TWO_CENTERS;
246 246

  
247 247
    int centers_perm_num = TablebaseHelpers.computePermutationNum(centers_perm);
248
    int total_twist = twist[0]+ 4*(twist[1]+ 4*(twist[2]+ 4*(twist[3]+ 4*(twist[4]+ 4*(twist[5]>1 ? 0:1)))));
248
    int total_twist = twist[0]+ 4*(twist[1]+ 4*(twist[2]+ 4*(twist[3]+ 4*(twist[4]+ 4*(twist[5]>1 ? 1:0)))));
249 249

  
250 250
/*
251 251
android.util.Log.e("D", "faces: "+mFaceColors[0]+" "+mFaceColors[1]+" "+mFaceColors[2]+" "
......
365 365
    {
366 366
    if( mSolver==null )
367 367
      {
368
      mSolver = ImplementedTablebasesList.createUnpacked(ObjectSignatures.PDIA_3);
369

  
370
      if( mSolver!=null )
371
        {
372
        mSolver.createTablebase(1);
373
        }
368
      mSolver = ImplementedTablebasesList.createPacked(res,ObjectSignatures.PDIA_3);
374 369
      }
375 370

  
376 371
    return mSolver!=null ? mSolver.solution(index,null) : null;

Also available in: Unified diff