()
| 68 | } |
| 69 | |
| 70 | public static String scramble() { |
| 71 | Random r = new Random(); |
| 72 | int cp, eo; |
| 73 | do { |
| 74 | cp = r.nextInt(24); |
| 75 | eo = r.nextInt(16); |
| 76 | } while (distance[cp][eo] < 2); |
| 77 | for (int d = 3; d < 9; d++) { |
| 78 | if (search(cp, eo, d, -1)) { |
| 79 | StringBuilder sb = new StringBuilder(); |
| 80 | for (int i = 1; i <= d; i++) |
| 81 | sb.append(turn[seq[i]]).append("2 "); |
| 82 | return sb.toString(); |
| 83 | } |
| 84 | } |
| 85 | return "error"; |
| 86 | } |
| 87 | |
| 88 | private static int[] img = new int[30]; |
| 89 | private static void initColor() { |
no test coverage detected