Method
getCorner
(int[] n, int c, int p, int o)
Source from the content-addressed store, hash-verified
| 349 | } |
| 350 | |
| 351 | private static void getCorner(int[] n, int c, int p, int o) { |
| 352 | int[] s = new int[4]; |
| 353 | s[0] = p % 2; s[1] = 1 - s[0]; s[2] = o / 3; s[3] = o % 3; |
| 354 | int q = 2, t; |
| 355 | for (t = 7; t >= 0; t--) |
| 356 | if (c >= Utils.Cnk[t][q]) { |
| 357 | c -= Utils.Cnk[t][q--]; |
| 358 | n[t] = s[q] << 3 | s[q + 2]; |
| 359 | } else n[t] = -3; |
| 360 | } |
| 361 | |
| 362 | private static String roux2(String scramble, int[] s1) { |
| 363 | String[] s = scramble.split(" "); |
Tested by
no test coverage detected