Project

General

Profile

« Previous | Next » 

Revision 43780264

Added by Leszek Koltunski about 1 year ago

Skewb solver: corrections for error detection.

View differences:

src/main/java/org/distorted/objectlib/tablebases/TablebaseHelpers.java
252 252
  public static void invertPermutation(int[] perm, int[] output)
253 253
    {
254 254
    int len = perm.length;
255
    for(int i=0; i<len; i++) output[i] = -1;
255 256
    for(int i=0; i<len; i++) output[perm[i]] = i;
256 257
    }
257 258
}

Also available in: Unified diff