Method
fillFacelet
(byte[][] facelet, char[] f, int[] perm, int[] ori, char[] ts, int pcs)
Source from the content-addressed store, hash-verified
| 285 | |
| 286 | //facelet |
| 287 | static void fillFacelet(byte[][] facelet, char[] f, int[] perm, int[] ori, char[] ts, int pcs) { |
| 288 | for (int c = 0; c < facelet.length; c++) { |
| 289 | int o = facelet[c].length; |
| 290 | for (int n = 0; n < o; n++) |
| 291 | f[facelet[c][(n + ori[c]) % o]] = ts[facelet[perm[c]][n] / pcs]; |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | //data storage |
| 296 | public static void read(char[] arr, InputStream in) throws IOException { |
Tested by
no test coverage detected