| 336 | } |
| 337 | |
| 338 | static void createPrun() { |
| 339 | for (int i = 1; i < 15582; i++) |
| 340 | csprun[i] = -1; |
| 341 | csprun[0] = 0; |
| 342 | int depth = 0; |
| 343 | //int done = 1; |
| 344 | |
| 345 | while (depth < 8) { |
| 346 | boolean inv = depth > 4; |
| 347 | int select = inv ? -1 : depth; |
| 348 | int check = inv ? depth : -1; |
| 349 | depth++; |
| 350 | for (int i = 0; i < 15582; i++) { |
| 351 | if (csprun[i] == select) { |
| 352 | for (int m = 0; m < 27; m++) { |
| 353 | int idx = ctsmv[i][m] >>> 6; |
| 354 | if (csprun[idx] == check) { |
| 355 | //++done; |
| 356 | if (inv) { |
| 357 | csprun[i] = (byte) depth; |
| 358 | break; |
| 359 | } else { |
| 360 | csprun[idx] = (byte) depth; |
| 361 | } |
| 362 | } |
| 363 | } |
| 364 | } |
| 365 | } |
| 366 | //System.out.println(depth+", "+done); |
| 367 | } |
| 368 | } |
| 369 | } |