Project

General

Profile

« Previous | Next » 

Revision f32c546d

Added by Leszek Koltunski about 1 year ago

Pyraminx solver: tablebase working now (tipless, tips to be added in the SolverPyraminx class)

View differences:

src/main/java/org/distorted/objectlib/tablebases/TablebasesAbstract.java
256 256
              int currQuat = tmpQuats[cubit];
257 257
              int newQuat = getMultQuat(quat,currQuat);
258 258
              tmpQuats[cubit] = newQuat;
259

  
260
if( index==0 && ax==2 && layer==1 && angle==2 )
261
  {
262
  android.util.Log.e("D","cubit "+cubit+" belongs, oldQ="+currQuat+" quat="+quat+" new: "+newQuat);
263
  }
264 259
              }
265 260

  
266
if( tmpQuats[4]==0 &&  tmpQuats[5]==1 && tmpQuats[6]==4 && tmpQuats[7]==3 && tmpQuats[8]==10 && tmpQuats[9]==9 )
267
  {
268
  android.util.Log.e("D","index="+index+" level="+level+" ax="+ax+" layer="+layer+" angle="+angle);
269
  android.util.Log.e("D", quats[4]+" "+quats[5]+" "+quats[6]+" "+quats[7]+" "+quats[8]+" "+quats[9]);
270
  }
271

  
272 261
          int childIndex = getIndex(tmpQuats);
273 262
          if( mTablebase.insertUnpacked(childIndex,newLevel) ) ret++;
274 263
          }

Also available in: Unified diff