Project

General

Profile

« Previous | Next » 

Revision 7cb33f2d

Added by Leszek Koltunski almost 2 years ago

Small corrections

View differences:

src/main/java/org/distorted/solvers/SolverIvyCube.java
204 204
    for(int i=0; i<index; i++)
205 205
      if( permutation[i]<val ) numOfSmaller++;
206 206

  
207
    return index-numOfSmaller;
207
    return val-numOfSmaller;
208 208
    }
209 209

  
210 210
///////////////////////////////////////////////////////////////////////////////////////////////////
......
243 243
    for(int i=0; i<6; i++)
244 244
      centers[i] = object.getCubitFaceStickerIndex(i+4,0) - 6;
245 245

  
246
/*
247 246
for(int i=0; i<4; i++)
248 247
  {
249 248
  android.util.Log.e("D", "corner "+i+" : "+corners[i][0]+" "+corners[i][1]+" "+corners[i][2]);
......
252 251
  {
253 252
  android.util.Log.e("D", "center "+i+" : "+centers[i]);
254 253
  }
255
*/
254

  
256 255
    int result1 = checkAllCentersPresent(centers);
257 256
    if( result1<0 ) return result1;
258 257

  
......
269 268

  
270 269
    int perm_num = computeEvenPermutationNum(center_colors);
271 270

  
272
//  android.util.Log.e("D", "twist : "+twist[0]+" "+twist[1]+" "+twist[2]+" "+twist[3]);
271
  android.util.Log.e("D", "twist : "+twist[0]+" "+twist[1]+" "+twist[2]+" "+twist[3]);
273 272

  
274 273
    int ret = perm_num + 360*(twist[0]+ 3*(twist[1]+ 3*(twist[2]+ 3*twist[3])));
275 274

  

Also available in: Unified diff