(int p, int m)
| 139 | } |
| 140 | |
| 141 | private static int gettwsmv(int p, int m) { |
| 142 | //given orientation p<729 and move m<3, return new orientation number |
| 143 | //convert number into array; |
| 144 | int[] ps = new int[7]; |
| 145 | Utils.idxToOri(ps, p, 7, true); |
| 146 | //perform move on array |
| 147 | twistMove(ps, m); |
| 148 | //convert array back to number |
| 149 | return Utils.oriToIdx(ps, 7, true); |
| 150 | } |
| 151 | |
| 152 | private static void calcperm() { |
| 153 | //calculate solving arrays |