diff options
77 files changed, 1563 insertions, 685 deletions
| @@ -27,10 +27,6 @@ | |||
| 27 | 27 | ||
| 28 | #endif | 28 | #endif |
| 29 | 29 | ||
| 30 | /****************************************************************************** | ||
| 31 | Section: mathematical constants | ||
| 32 | ******************************************************************************/ | ||
| 33 | |||
| 34 | #define _2p11 2048U | 30 | #define _2p11 2048U |
| 35 | #define _2p12 4096U | 31 | #define _2p12 4096U |
| 36 | #define _3p7 2187U | 32 | #define _3p7 2187U |
| @@ -38,94 +34,6 @@ Section: mathematical constants | |||
| 38 | #define _12c4 495U | 34 | #define _12c4 495U |
| 39 | #define _8c4 70U | 35 | #define _8c4 70U |
| 40 | 36 | ||
| 41 | _static int64_t binomial[12][12] = { | ||
| 42 | {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, | ||
| 43 | {1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, | ||
| 44 | {1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0}, | ||
| 45 | {1, 3, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0}, | ||
| 46 | {1, 4, 6, 4, 1, 0, 0, 0, 0, 0, 0, 0}, | ||
| 47 | {1, 5, 10, 10, 5, 1, 0, 0, 0, 0, 0, 0}, | ||
| 48 | {1, 6, 15, 20, 15, 6, 1, 0, 0, 0, 0, 0}, | ||
| 49 | {1, 7, 21, 35, 35, 21, 7, 1, 0, 0, 0, 0}, | ||
| 50 | {1, 8, 28, 56, 70, 56, 28, 8, 1, 0, 0, 0}, | ||
| 51 | {1, 9, 36, 84, 126, 126, 84, 36, 9, 1, 0, 0}, | ||
| 52 | {1, 10, 45, 120, 210, 252, 210, 120, 45, 10, 1, 0}, | ||
| 53 | {1, 11, 55, 165, 330, 462, 462, 330, 165, 55, 11, 1}, | ||
| 54 | }; | ||
| 55 | |||
| 56 | /****************************************************************************** | ||
| 57 | Section: moves definitions and tables | ||
| 58 | ******************************************************************************/ | ||
| 59 | |||
| 60 | #define U 0U | ||
| 61 | #define U2 1U | ||
| 62 | #define U3 2U | ||
| 63 | #define D 3U | ||
| 64 | #define D2 4U | ||
| 65 | #define D3 5U | ||
| 66 | #define R 6U | ||
| 67 | #define R2 7U | ||
| 68 | #define R3 8U | ||
| 69 | #define L 9U | ||
| 70 | #define L2 10U | ||
| 71 | #define L3 11U | ||
| 72 | #define F 12U | ||
| 73 | #define F2 13U | ||
| 74 | #define F3 14U | ||
| 75 | #define B 15U | ||
| 76 | #define B2 16U | ||
| 77 | #define B3 17U | ||
| 78 | |||
| 79 | #define UFr 0 | ||
| 80 | #define ULr 1 | ||
| 81 | #define UBr 2 | ||
| 82 | #define URr 3 | ||
| 83 | #define DFr 4 | ||
| 84 | #define DLr 5 | ||
| 85 | #define DBr 6 | ||
| 86 | #define DRr 7 | ||
| 87 | #define RUr 8 | ||
| 88 | #define RFr 9 | ||
| 89 | #define RDr 10 | ||
| 90 | #define RBr 11 | ||
| 91 | #define LUr 12 | ||
| 92 | #define LFr 13 | ||
| 93 | #define LDr 14 | ||
| 94 | #define LBr 15 | ||
| 95 | #define FUr 16 | ||
| 96 | #define FRr 17 | ||
| 97 | #define FDr 18 | ||
| 98 | #define FLr 19 | ||
| 99 | #define BUr 20 | ||
| 100 | #define BRr 21 | ||
| 101 | #define BDr 22 | ||
| 102 | #define BLr 23 | ||
| 103 | |||
| 104 | #define UFm 24 | ||
| 105 | #define ULm 25 | ||
| 106 | #define UBm 26 | ||
| 107 | #define URm 27 | ||
| 108 | #define DFm 28 | ||
| 109 | #define DLm 29 | ||
| 110 | #define DBm 30 | ||
| 111 | #define DRm 31 | ||
| 112 | #define RUm 32 | ||
| 113 | #define RFm 33 | ||
| 114 | #define RDm 34 | ||
| 115 | #define RBm 35 | ||
| 116 | #define LUm 36 | ||
| 117 | #define LFm 37 | ||
| 118 | #define LDm 38 | ||
| 119 | #define LBm 39 | ||
| 120 | #define FUm 40 | ||
| 121 | #define FRm 41 | ||
| 122 | #define FDm 42 | ||
| 123 | #define FLm 43 | ||
| 124 | #define BUm 44 | ||
| 125 | #define BRm 45 | ||
| 126 | #define BDm 46 | ||
| 127 | #define BLm 47 | ||
| 128 | |||
| 129 | #define _c_ufr 0U | 37 | #define _c_ufr 0U |
| 130 | #define _c_ubl 1U | 38 | #define _c_ubl 1U |
| 131 | #define _c_dfl 2U | 39 | #define _c_dfl 2U |
| @@ -163,406 +71,29 @@ Section: moves definitions and tables | |||
| 163 | #define _eflip 0x10U | 71 | #define _eflip 0x10U |
| 164 | #define _error 0xFFU | 72 | #define _error 0xFFU |
| 165 | 73 | ||
| 74 | typedef enum { | ||
| 75 | U, U2, U3, D, D2, D3, | ||
| 76 | R, R2, R3, L, L2, L3, | ||
| 77 | F, F2, F3, B, B2, B3 | ||
| 78 | } move_t; | ||
| 79 | |||
| 80 | typedef enum { | ||
| 81 | UFr, ULr, UBr, URr, DFr, DLr, DBr, DRr, | ||
| 82 | RUr, RFr, RDr, RBr, LUr, LFr, LDr, LBr, | ||
| 83 | FUr, FRr, FDr, FLr, BUr, BRr, BDr, BLr, | ||
| 84 | |||
| 85 | UFm, ULm, UBm, URm, DFm, DLm, DBm, DRm, | ||
| 86 | RUm, RFm, RDm, RBm, LUm, LFm, LDm, LBm, | ||
| 87 | FUm, FRm, FDm, FLm, BUm, BRm, BDm, BLm | ||
| 88 | } trans_t; | ||
| 89 | |||
| 166 | _static cube_t zero = { .corner = {0}, .edge = {0} }; | 90 | _static cube_t zero = { .corner = {0}, .edge = {0} }; |
| 167 | _static cube_t solved = { | 91 | _static cube_t solved = { |
| 168 | .corner = {0, 1, 2, 3, 4, 5, 6, 7}, | 92 | .corner = {0, 1, 2, 3, 4, 5, 6, 7}, |
| 169 | .edge = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} | 93 | .edge = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} |
| 170 | }; | 94 | }; |
| 171 | 95 | ||
| 172 | #define zero_fast fastcube( \ | 96 | #include "tables.h" |
| 173 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) | ||
| 174 | #define solved_fast fastcube( \ | ||
| 175 | 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) | ||
| 176 | |||
| 177 | #define _move_cube_U fastcube( \ | ||
| 178 | 5, 4, 2, 3, 0, 1, 6, 7, 4, 5, 2, 3, 1, 0, 6, 7, 8, 9, 10, 11) | ||
| 179 | #define _move_cube_U2 fastcube( \ | ||
| 180 | 1, 0, 2, 3, 5, 4, 6, 7, 1, 0, 2, 3, 5, 4, 6, 7, 8, 9, 10, 11) | ||
| 181 | #define _move_cube_U3 fastcube( \ | ||
| 182 | 4, 5, 2, 3, 1, 0, 6, 7, 5, 4, 2, 3, 0, 1, 6, 7, 8, 9, 10, 11) | ||
| 183 | #define _move_cube_D fastcube( \ | ||
| 184 | 0, 1, 7, 6, 4, 5, 2, 3, 0, 1, 7, 6, 4, 5, 2, 3, 8, 9, 10, 11) | ||
| 185 | #define _move_cube_D2 fastcube( \ | ||
| 186 | 0, 1, 3, 2, 4, 5, 7, 6, 0, 1, 3, 2, 4, 5, 7, 6, 8, 9, 10, 11) | ||
| 187 | #define _move_cube_D3 fastcube( \ | ||
| 188 | 0, 1, 6, 7, 4, 5, 3, 2, 0, 1, 6, 7, 4, 5, 3, 2, 8, 9, 10, 11) | ||
| 189 | #define _move_cube_R fastcube( \ | ||
| 190 | 70, 1, 2, 69, 4, 32, 35, 7, 0, 1, 2, 3, 8, 5, 6, 11, 7, 9, 10, 4) | ||
| 191 | #define _move_cube_R2 fastcube( \ | ||
| 192 | 3, 1, 2, 0, 4, 6, 5, 7, 0, 1, 2, 3, 7, 5, 6, 4, 11, 9, 10, 8) | ||
| 193 | #define _move_cube_R3 fastcube( \ | ||
| 194 | 69, 1, 2, 70, 4, 35, 32, 7, 0, 1, 2, 3, 11, 5, 6, 8, 4, 9, 10, 7) | ||
| 195 | #define _move_cube_L fastcube( \ | ||
| 196 | 0, 71, 68, 3, 33, 5, 6, 34, 0, 1, 2, 3, 4, 10, 9, 7, 8, 5, 6, 11) | ||
| 197 | #define _move_cube_L2 fastcube( \ | ||
| 198 | 0, 2, 1, 3, 7, 5, 6, 4, 0, 1, 2, 3, 4, 6, 5, 7, 8, 10, 9, 11) | ||
| 199 | #define _move_cube_L3 fastcube( \ | ||
| 200 | 0, 68, 71, 3, 34, 5, 6, 33, 0, 1, 2, 3, 4, 9, 10, 7, 8, 6, 5, 11) | ||
| 201 | #define _move_cube_F fastcube( \ | ||
| 202 | 36, 1, 38, 3, 66, 5, 64, 7, 25, 1, 2, 24, 4, 5, 6, 7, 16, 19, 10, 11) | ||
| 203 | #define _move_cube_F2 fastcube( \ | ||
| 204 | 2, 1, 0, 3, 6, 5, 4, 7, 3, 1, 2, 0, 4, 5, 6, 7, 9, 8, 10, 11) | ||
| 205 | #define _move_cube_F3 fastcube( \ | ||
| 206 | 38, 1, 36, 3, 64, 5, 66, 7, 24, 1, 2, 25, 4, 5, 6, 7, 19, 16, 10, 11) | ||
| 207 | #define _move_cube_B fastcube( \ | ||
| 208 | 0, 37, 2, 39, 4, 67, 6, 65, 0, 27, 26, 3, 4, 5, 6, 7, 8, 9, 17, 18) | ||
| 209 | #define _move_cube_B2 fastcube( \ | ||
| 210 | 0, 3, 2, 1, 4, 7, 6, 5, 0, 2, 1, 3, 4, 5, 6, 7, 8, 9, 11, 10) | ||
| 211 | #define _move_cube_B3 fastcube( \ | ||
| 212 | 0, 39, 2, 37, 4, 65, 6, 67, 0, 26, 27, 3, 4, 5, 6, 7, 8, 9, 18, 17) | ||
| 213 | |||
| 214 | #define _trans_cube_UFr fastcube( \ | ||
| 215 | 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) | ||
| 216 | #define _trans_cube_UFr_inverse fastcube( \ | ||
| 217 | 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) | ||
| 218 | #define _trans_cube_ULr fastcube( \ | ||
| 219 | 4, 5, 7, 6, 1, 0, 2, 3, 5, 4, 7, 6, 0, 1, 2, 3, 25, 26, 27, 24) | ||
| 220 | #define _trans_cube_ULr_inverse fastcube( \ | ||
| 221 | 5, 4, 6, 7, 0, 1, 3, 2, 4, 5, 6, 7, 1, 0, 3, 2, 27, 24, 25, 26) | ||
| 222 | #define _trans_cube_UBr fastcube( \ | ||
| 223 | 1, 0, 3, 2, 5, 4, 7, 6, 1, 0, 3, 2, 5, 4, 7, 6, 10, 11, 8, 9) | ||
| 224 | #define _trans_cube_UBr_inverse fastcube( \ | ||
| 225 | 1, 0, 3, 2, 5, 4, 7, 6, 1, 0, 3, 2, 5, 4, 7, 6, 10, 11, 8, 9) | ||
| 226 | #define _trans_cube_URr fastcube( \ | ||
| 227 | 5, 4, 6, 7, 0, 1, 3, 2, 4, 5, 6, 7, 1, 0, 3, 2, 27, 24, 25, 26) | ||
| 228 | #define _trans_cube_URr_inverse fastcube( \ | ||
| 229 | 4, 5, 7, 6, 1, 0, 2, 3, 5, 4, 7, 6, 0, 1, 2, 3, 25, 26, 27, 24) | ||
| 230 | #define _trans_cube_DFr fastcube( \ | ||
| 231 | 2, 3, 0, 1, 6, 7, 4, 5, 3, 2, 1, 0, 6, 7, 4, 5, 9, 8, 11, 10) | ||
| 232 | #define _trans_cube_DFr_inverse fastcube( \ | ||
| 233 | 2, 3, 0, 1, 6, 7, 4, 5, 3, 2, 1, 0, 6, 7, 4, 5, 9, 8, 11, 10) | ||
| 234 | #define _trans_cube_DLr fastcube( \ | ||
| 235 | 7, 6, 4, 5, 2, 3, 1, 0, 6, 7, 4, 5, 2, 3, 0, 1, 26, 25, 24, 27) | ||
| 236 | #define _trans_cube_DLr_inverse fastcube( \ | ||
| 237 | 7, 6, 4, 5, 2, 3, 1, 0, 6, 7, 4, 5, 2, 3, 0, 1, 26, 25, 24, 27) | ||
| 238 | #define _trans_cube_DBr fastcube( \ | ||
| 239 | 3, 2, 1, 0, 7, 6, 5, 4, 2, 3, 0, 1, 7, 6, 5, 4, 11, 10, 9, 8) | ||
| 240 | #define _trans_cube_DBr_inverse fastcube( \ | ||
| 241 | 3, 2, 1, 0, 7, 6, 5, 4, 2, 3, 0, 1, 7, 6, 5, 4, 11, 10, 9, 8) | ||
| 242 | #define _trans_cube_DRr fastcube( \ | ||
| 243 | 6, 7, 5, 4, 3, 2, 0, 1, 7, 6, 5, 4, 3, 2, 1, 0, 24, 27, 26, 25) | ||
| 244 | #define _trans_cube_DRr_inverse fastcube( \ | ||
| 245 | 6, 7, 5, 4, 3, 2, 0, 1, 7, 6, 5, 4, 3, 2, 1, 0, 24, 27, 26, 25) | ||
| 246 | #define _trans_cube_RUr fastcube( \ | ||
| 247 | 64, 67, 65, 66, 37, 38, 36, 39, 20, 23, 22, 21, 24, 27, 26, 25, 0, 1, 2, 3) | ||
| 248 | #define _trans_cube_RUr_inverse fastcube( \ | ||
| 249 | 32, 34, 35, 33, 70, 68, 69, 71, 8, 9, 10, 11, 16, 19, 18, 17, 20, 23, 22, 21) | ||
| 250 | #define _trans_cube_RFr fastcube( \ | ||
| 251 | 38, 37, 36, 39, 64, 67, 66, 65, 24, 27, 26, 25, 23, 20, 21, 22, 19, 16, 17, 18) | ||
| 252 | #define _trans_cube_RFr_inverse fastcube( \ | ||
| 253 | 36, 39, 38, 37, 66, 65, 64, 67, 25, 26, 27, 24, 21, 22, 23, 20, 16, 19, 18, 17) | ||
| 254 | #define _trans_cube_RDr fastcube( \ | ||
| 255 | 67, 64, 66, 65, 38, 37, 39, 36, 23, 20, 21, 22, 27, 24, 25, 26, 2, 3, 0, 1) | ||
| 256 | #define _trans_cube_RDr_inverse fastcube( \ | ||
| 257 | 33, 35, 34, 32, 71, 69, 68, 70, 10, 11, 8, 9, 17, 18, 19, 16, 21, 22, 23, 20) | ||
| 258 | #define _trans_cube_RBr fastcube( \ | ||
| 259 | 37, 38, 39, 36, 67, 64, 65, 66, 27, 24, 25, 26, 20, 23, 22, 21, 17, 18, 19, 16) | ||
| 260 | #define _trans_cube_RBr_inverse fastcube( \ | ||
| 261 | 37, 38, 39, 36, 67, 64, 65, 66, 27, 24, 25, 26, 20, 23, 22, 21, 17, 18, 19, 16) | ||
| 262 | #define _trans_cube_LUr fastcube( \ | ||
| 263 | 65, 66, 64, 67, 36, 39, 37, 38, 21, 22, 23, 20, 26, 25, 24, 27, 1, 0, 3, 2) | ||
| 264 | #define _trans_cube_LUr_inverse fastcube( \ | ||
| 265 | 34, 32, 33, 35, 68, 70, 71, 69, 9, 8, 11, 10, 19, 16, 17, 18, 22, 21, 20, 23) | ||
| 266 | #define _trans_cube_LFr fastcube( \ | ||
| 267 | 36, 39, 38, 37, 66, 65, 64, 67, 25, 26, 27, 24, 21, 22, 23, 20, 16, 19, 18, 17) | ||
| 268 | #define _trans_cube_LFr_inverse fastcube( \ | ||
| 269 | 38, 37, 36, 39, 64, 67, 66, 65, 24, 27, 26, 25, 23, 20, 21, 22, 19, 16, 17, 18) | ||
| 270 | #define _trans_cube_LDr fastcube( \ | ||
| 271 | 66, 65, 67, 64, 39, 36, 38, 37, 22, 21, 20, 23, 25, 26, 27, 24, 3, 2, 1, 0) | ||
| 272 | #define _trans_cube_LDr_inverse fastcube( \ | ||
| 273 | 35, 33, 32, 34, 69, 71, 70, 68, 11, 10, 9, 8, 18, 17, 16, 19, 23, 20, 21, 22) | ||
| 274 | #define _trans_cube_LBr fastcube( \ | ||
| 275 | 39, 36, 37, 38, 65, 66, 67, 64, 26, 25, 24, 27, 22, 21, 20, 23, 18, 17, 16, 19) | ||
| 276 | #define _trans_cube_LBr_inverse fastcube( \ | ||
| 277 | 39, 36, 37, 38, 65, 66, 67, 64, 26, 25, 24, 27, 22, 21, 20, 23, 18, 17, 16, 19) | ||
| 278 | #define _trans_cube_FUr fastcube( \ | ||
| 279 | 68, 70, 69, 71, 32, 34, 33, 35, 16, 19, 18, 17, 9, 8, 11, 10, 5, 4, 7, 6) | ||
| 280 | #define _trans_cube_FUr_inverse fastcube( \ | ||
| 281 | 68, 70, 69, 71, 32, 34, 33, 35, 16, 19, 18, 17, 9, 8, 11, 10, 5, 4, 7, 6) | ||
| 282 | #define _trans_cube_FRr fastcube( \ | ||
| 283 | 32, 34, 35, 33, 70, 68, 69, 71, 8, 9, 10, 11, 16, 19, 18, 17, 20, 23, 22, 21) | ||
| 284 | #define _trans_cube_FRr_inverse fastcube( \ | ||
| 285 | 64, 67, 65, 66, 37, 38, 36, 39, 20, 23, 22, 21, 24, 27, 26, 25, 0, 1, 2, 3) | ||
| 286 | #define _trans_cube_FDr fastcube( \ | ||
| 287 | 70, 68, 71, 69, 34, 32, 35, 33, 19, 16, 17, 18, 8, 9, 10, 11, 7, 6, 5, 4) | ||
| 288 | #define _trans_cube_FDr_inverse fastcube( \ | ||
| 289 | 69, 71, 68, 70, 33, 35, 32, 34, 17, 18, 19, 16, 11, 10, 9, 8, 4, 5, 6, 7) | ||
| 290 | #define _trans_cube_FLr fastcube( \ | ||
| 291 | 34, 32, 33, 35, 68, 70, 71, 69, 9, 8, 11, 10, 19, 16, 17, 18, 22, 21, 20, 23) | ||
| 292 | #define _trans_cube_FLr_inverse fastcube( \ | ||
| 293 | 65, 66, 64, 67, 36, 39, 37, 38, 21, 22, 23, 20, 26, 25, 24, 27, 1, 0, 3, 2) | ||
| 294 | #define _trans_cube_BUr fastcube( \ | ||
| 295 | 69, 71, 68, 70, 33, 35, 32, 34, 17, 18, 19, 16, 11, 10, 9, 8, 4, 5, 6, 7) | ||
| 296 | #define _trans_cube_BUr_inverse fastcube( \ | ||
| 297 | 70, 68, 71, 69, 34, 32, 35, 33, 19, 16, 17, 18, 8, 9, 10, 11, 7, 6, 5, 4) | ||
| 298 | #define _trans_cube_BRr fastcube( \ | ||
| 299 | 35, 33, 32, 34, 69, 71, 70, 68, 11, 10, 9, 8, 18, 17, 16, 19, 23, 20, 21, 22) | ||
| 300 | #define _trans_cube_BRr_inverse fastcube( \ | ||
| 301 | 66, 65, 67, 64, 39, 36, 38, 37, 22, 21, 20, 23, 25, 26, 27, 24, 3, 2, 1, 0) | ||
| 302 | #define _trans_cube_BDr fastcube( \ | ||
| 303 | 71, 69, 70, 68, 35, 33, 34, 32, 18, 17, 16, 19, 10, 11, 8, 9, 6, 7, 4, 5) | ||
| 304 | #define _trans_cube_BDr_inverse fastcube( \ | ||
| 305 | 71, 69, 70, 68, 35, 33, 34, 32, 18, 17, 16, 19, 10, 11, 8, 9, 6, 7, 4, 5) | ||
| 306 | #define _trans_cube_BLr fastcube( \ | ||
| 307 | 33, 35, 34, 32, 71, 69, 68, 70, 10, 11, 8, 9, 17, 18, 19, 16, 21, 22, 23, 20) | ||
| 308 | #define _trans_cube_BLr_inverse fastcube( \ | ||
| 309 | 67, 64, 66, 65, 38, 37, 39, 36, 23, 20, 21, 22, 27, 24, 25, 26, 2, 3, 0, 1) | ||
| 310 | #define _trans_cube_UFm fastcube( \ | ||
| 311 | 4, 5, 6, 7, 0, 1, 2, 3, 0, 1, 2, 3, 5, 4, 7, 6, 9, 8, 11, 10) | ||
| 312 | #define _trans_cube_UFm_inverse fastcube( \ | ||
| 313 | 4, 5, 6, 7, 0, 1, 2, 3, 0, 1, 2, 3, 5, 4, 7, 6, 9, 8, 11, 10) | ||
| 314 | #define _trans_cube_ULm fastcube( \ | ||
| 315 | 0, 1, 3, 2, 5, 4, 6, 7, 4, 5, 6, 7, 0, 1, 2, 3, 24, 27, 26, 25) | ||
| 316 | #define _trans_cube_ULm_inverse fastcube( \ | ||
| 317 | 0, 1, 3, 2, 5, 4, 6, 7, 4, 5, 6, 7, 0, 1, 2, 3, 24, 27, 26, 25) | ||
| 318 | #define _trans_cube_UBm fastcube( \ | ||
| 319 | 5, 4, 7, 6, 1, 0, 3, 2, 1, 0, 3, 2, 4, 5, 6, 7, 11, 10, 9, 8) | ||
| 320 | #define _trans_cube_UBm_inverse fastcube( \ | ||
| 321 | 5, 4, 7, 6, 1, 0, 3, 2, 1, 0, 3, 2, 4, 5, 6, 7, 11, 10, 9, 8) | ||
| 322 | #define _trans_cube_URm fastcube( \ | ||
| 323 | 1, 0, 2, 3, 4, 5, 7, 6, 5, 4, 7, 6, 1, 0, 3, 2, 26, 25, 24, 27) | ||
| 324 | #define _trans_cube_URm_inverse fastcube( \ | ||
| 325 | 1, 0, 2, 3, 4, 5, 7, 6, 5, 4, 7, 6, 1, 0, 3, 2, 26, 25, 24, 27) | ||
| 326 | #define _trans_cube_DFm fastcube( \ | ||
| 327 | 6, 7, 4, 5, 2, 3, 0, 1, 3, 2, 1, 0, 7, 6, 5, 4, 8, 9, 10, 11) | ||
| 328 | #define _trans_cube_DFm_inverse fastcube( \ | ||
| 329 | 6, 7, 4, 5, 2, 3, 0, 1, 3, 2, 1, 0, 7, 6, 5, 4, 8, 9, 10, 11) | ||
| 330 | #define _trans_cube_DLm fastcube( \ | ||
| 331 | 3, 2, 0, 1, 6, 7, 5, 4, 7, 6, 5, 4, 2, 3, 0, 1, 27, 24, 25, 26) | ||
| 332 | #define _trans_cube_DLm_inverse fastcube( \ | ||
| 333 | 2, 3, 1, 0, 7, 6, 4, 5, 6, 7, 4, 5, 3, 2, 1, 0, 25, 26, 27, 24) | ||
| 334 | #define _trans_cube_DBm fastcube( \ | ||
| 335 | 7, 6, 5, 4, 3, 2, 1, 0, 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9) | ||
| 336 | #define _trans_cube_DBm_inverse fastcube( \ | ||
| 337 | 7, 6, 5, 4, 3, 2, 1, 0, 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9) | ||
| 338 | #define _trans_cube_DRm fastcube( \ | ||
| 339 | 2, 3, 1, 0, 7, 6, 4, 5, 6, 7, 4, 5, 3, 2, 1, 0, 25, 26, 27, 24) | ||
| 340 | #define _trans_cube_DRm_inverse fastcube( \ | ||
| 341 | 3, 2, 0, 1, 6, 7, 5, 4, 7, 6, 5, 4, 2, 3, 0, 1, 27, 24, 25, 26) | ||
| 342 | #define _trans_cube_RUm fastcube( \ | ||
| 343 | 68, 71, 69, 70, 33, 34, 32, 35, 21, 22, 23, 20, 25, 26, 27, 24, 0, 1, 2, 3) | ||
| 344 | #define _trans_cube_RUm_inverse fastcube( \ | ||
| 345 | 70, 68, 69, 71, 32, 34, 35, 33, 8, 9, 10, 11, 19, 16, 17, 18, 23, 20, 21, 22) | ||
| 346 | #define _trans_cube_RFm fastcube( \ | ||
| 347 | 34, 33, 32, 35, 68, 71, 70, 69, 25, 26, 27, 24, 22, 21, 20, 23, 19, 16, 17, 18) | ||
| 348 | #define _trans_cube_RFm_inverse fastcube( \ | ||
| 349 | 66, 65, 64, 67, 36, 39, 38, 37, 25, 26, 27, 24, 22, 21, 20, 23, 19, 16, 17, 18) | ||
| 350 | #define _trans_cube_RDm fastcube( \ | ||
| 351 | 71, 68, 70, 69, 34, 33, 35, 32, 22, 21, 20, 23, 26, 25, 24, 27, 2, 3, 0, 1) | ||
| 352 | #define _trans_cube_RDm_inverse fastcube( \ | ||
| 353 | 71, 69, 68, 70, 33, 35, 34, 32, 10, 11, 8, 9, 18, 17, 16, 19, 22, 21, 20, 23) | ||
| 354 | #define _trans_cube_RBm fastcube( \ | ||
| 355 | 33, 34, 35, 32, 71, 68, 69, 70, 26, 25, 24, 27, 21, 22, 23, 20, 17, 18, 19, 16) | ||
| 356 | #define _trans_cube_RBm_inverse fastcube( \ | ||
| 357 | 67, 64, 65, 66, 37, 38, 39, 36, 27, 24, 25, 26, 23, 20, 21, 22, 18, 17, 16, 19) | ||
| 358 | #define _trans_cube_LUm fastcube( \ | ||
| 359 | 69, 70, 68, 71, 32, 35, 33, 34, 20, 23, 22, 21, 27, 24, 25, 26, 1, 0, 3, 2) | ||
| 360 | #define _trans_cube_LUm_inverse fastcube( \ | ||
| 361 | 68, 70, 71, 69, 34, 32, 33, 35, 9, 8, 11, 10, 16, 19, 18, 17, 21, 22, 23, 20) | ||
| 362 | #define _trans_cube_LFm fastcube( \ | ||
| 363 | 32, 35, 34, 33, 70, 69, 68, 71, 24, 27, 26, 25, 20, 23, 22, 21, 16, 19, 18, 17) | ||
| 364 | #define _trans_cube_LFm_inverse fastcube( \ | ||
| 365 | 64, 67, 66, 65, 38, 37, 36, 39, 24, 27, 26, 25, 20, 23, 22, 21, 16, 19, 18, 17) | ||
| 366 | #define _trans_cube_LDm fastcube( \ | ||
| 367 | 70, 69, 71, 68, 35, 32, 34, 33, 23, 20, 21, 22, 24, 27, 26, 25, 3, 2, 1, 0) | ||
| 368 | #define _trans_cube_LDm_inverse fastcube( \ | ||
| 369 | 69, 71, 70, 68, 35, 33, 32, 34, 11, 10, 9, 8, 17, 18, 19, 16, 20, 23, 22, 21) | ||
| 370 | #define _trans_cube_LBm fastcube( \ | ||
| 371 | 35, 32, 33, 34, 69, 70, 71, 68, 27, 24, 25, 26, 23, 20, 21, 22, 18, 17, 16, 19) | ||
| 372 | #define _trans_cube_LBm_inverse fastcube( \ | ||
| 373 | 65, 66, 67, 64, 39, 36, 37, 38, 26, 25, 24, 27, 21, 22, 23, 20, 17, 18, 19, 16) | ||
| 374 | #define _trans_cube_FUm fastcube( \ | ||
| 375 | 64, 66, 65, 67, 36, 38, 37, 39, 16, 19, 18, 17, 8, 9, 10, 11, 4, 5, 6, 7) | ||
| 376 | #define _trans_cube_FUm_inverse fastcube( \ | ||
| 377 | 32, 34, 33, 35, 68, 70, 69, 71, 16, 19, 18, 17, 8, 9, 10, 11, 4, 5, 6, 7) | ||
| 378 | #define _trans_cube_FRm fastcube( \ | ||
| 379 | 36, 38, 39, 37, 66, 64, 65, 67, 9, 8, 11, 10, 16, 19, 18, 17, 21, 22, 23, 20) | ||
| 380 | #define _trans_cube_FRm_inverse fastcube( \ | ||
| 381 | 37, 38, 36, 39, 64, 67, 65, 66, 20, 23, 22, 21, 27, 24, 25, 26, 1, 0, 3, 2) | ||
| 382 | #define _trans_cube_FDm fastcube( \ | ||
| 383 | 66, 64, 67, 65, 38, 36, 39, 37, 19, 16, 17, 18, 9, 8, 11, 10, 6, 7, 4, 5) | ||
| 384 | #define _trans_cube_FDm_inverse fastcube( \ | ||
| 385 | 33, 35, 32, 34, 69, 71, 68, 70, 17, 18, 19, 16, 10, 11, 8, 9, 5, 4, 7, 6) | ||
| 386 | #define _trans_cube_FLm fastcube( \ | ||
| 387 | 38, 36, 37, 39, 64, 66, 67, 65, 8, 9, 10, 11, 19, 16, 17, 18, 23, 20, 21, 22) | ||
| 388 | #define _trans_cube_FLm_inverse fastcube( \ | ||
| 389 | 36, 39, 37, 38, 65, 66, 64, 67, 21, 22, 23, 20, 25, 26, 27, 24, 0, 1, 2, 3) | ||
| 390 | #define _trans_cube_BUm fastcube( \ | ||
| 391 | 65, 67, 64, 66, 37, 39, 36, 38, 17, 18, 19, 16, 10, 11, 8, 9, 5, 4, 7, 6) | ||
| 392 | #define _trans_cube_BUm_inverse fastcube( \ | ||
| 393 | 34, 32, 35, 33, 70, 68, 71, 69, 19, 16, 17, 18, 9, 8, 11, 10, 6, 7, 4, 5) | ||
| 394 | #define _trans_cube_BRm fastcube( \ | ||
| 395 | 39, 37, 36, 38, 65, 67, 66, 64, 10, 11, 8, 9, 18, 17, 16, 19, 22, 21, 20, 23) | ||
| 396 | #define _trans_cube_BRm_inverse fastcube( \ | ||
| 397 | 39, 36, 38, 37, 66, 65, 67, 64, 22, 21, 20, 23, 26, 25, 24, 27, 2, 3, 0, 1) | ||
| 398 | #define _trans_cube_BDm fastcube( \ | ||
| 399 | 67, 65, 66, 64, 39, 37, 38, 36, 18, 17, 16, 19, 11, 10, 9, 8, 7, 6, 5, 4) | ||
| 400 | #define _trans_cube_BDm_inverse fastcube( \ | ||
| 401 | 35, 33, 34, 32, 71, 69, 70, 68, 18, 17, 16, 19, 11, 10, 9, 8, 7, 6, 5, 4) | ||
| 402 | #define _trans_cube_BLm fastcube( \ | ||
| 403 | 37, 39, 38, 36, 67, 65, 64, 66, 11, 10, 9, 8, 17, 18, 19, 16, 20, 23, 22, 21) | ||
| 404 | #define _trans_cube_BLm_inverse fastcube( \ | ||
| 405 | 38, 37, 39, 36, 67, 64, 66, 65, 23, 20, 21, 22, 24, 27, 26, 25, 3, 2, 1, 0) | ||
| 406 | |||
| 407 | _static char *cornerstr[] = { | ||
| 408 | [_c_ufr] = "UFR", | ||
| 409 | [_c_ubl] = "UBL", | ||
| 410 | [_c_dfl] = "DFL", | ||
| 411 | [_c_dbr] = "DBR", | ||
| 412 | [_c_ufl] = "UFL", | ||
| 413 | [_c_ubr] = "UBR", | ||
| 414 | [_c_dfr] = "DFR", | ||
| 415 | [_c_dbl] = "DBL" | ||
| 416 | }; | ||
| 417 | |||
| 418 | _static char *cornerstralt[] = { | ||
| 419 | [_c_ufr] = "URF", | ||
| 420 | [_c_ubl] = "ULB", | ||
| 421 | [_c_dfl] = "DLF", | ||
| 422 | [_c_dbr] = "DRB", | ||
| 423 | [_c_ufl] = "ULF", | ||
| 424 | [_c_ubr] = "URB", | ||
| 425 | [_c_dfr] = "DRF", | ||
| 426 | [_c_dbl] = "DLB" | ||
| 427 | }; | ||
| 428 | |||
| 429 | _static char *edgestr[] = { | ||
| 430 | [_e_uf] = "UF", | ||
| 431 | [_e_ub] = "UB", | ||
| 432 | [_e_db] = "DB", | ||
| 433 | [_e_df] = "DF", | ||
| 434 | [_e_ur] = "UR", | ||
| 435 | [_e_ul] = "UL", | ||
| 436 | [_e_dl] = "DL", | ||
| 437 | [_e_dr] = "DR", | ||
| 438 | [_e_fr] = "FR", | ||
| 439 | [_e_fl] = "FL", | ||
| 440 | [_e_bl] = "BL", | ||
| 441 | [_e_br] = "BR" | ||
| 442 | }; | ||
| 443 | |||
| 444 | _static char *movestr[] = { | ||
| 445 | [U] = "U", | ||
| 446 | [U2] = "U2", | ||
| 447 | [U3] = "U'", | ||
| 448 | [D] = "D", | ||
| 449 | [D2] = "D2", | ||
| 450 | [D3] = "D'", | ||
| 451 | [R] = "R", | ||
| 452 | [R2] = "R2", | ||
| 453 | [R3] = "R'", | ||
| 454 | [L] = "L", | ||
| 455 | [L2] = "L2", | ||
| 456 | [L3] = "L'", | ||
| 457 | [F] = "F", | ||
| 458 | [F2] = "F2", | ||
| 459 | [F3] = "F'", | ||
| 460 | [B] = "B", | ||
| 461 | [B2] = "B2", | ||
| 462 | [B3] = "B'", | ||
| 463 | }; | ||
| 464 | |||
| 465 | _static char *transstr[] = { | ||
| 466 | [UFr] = "rotation UF", | ||
| 467 | [UFm] = "mirrored UF", | ||
| 468 | [ULr] = "rotation UL", | ||
| 469 | [ULm] = "mirrored UL", | ||
| 470 | [UBr] = "rotation UB", | ||
| 471 | [UBm] = "mirrored UB", | ||
| 472 | [URr] = "rotation UR", | ||
| 473 | [URm] = "mirrored UR", | ||
| 474 | [DFr] = "rotation DF", | ||
| 475 | [DFm] = "mirrored DF", | ||
| 476 | [DLr] = "rotation DL", | ||
| 477 | [DLm] = "mirrored DL", | ||
| 478 | [DBr] = "rotation DB", | ||
| 479 | [DBm] = "mirrored DB", | ||
| 480 | [DRr] = "rotation DR", | ||
| 481 | [DRm] = "mirrored DR", | ||
| 482 | [RUr] = "rotation RU", | ||
| 483 | [RUm] = "mirrored RU", | ||
| 484 | [RFr] = "rotation RF", | ||
| 485 | [RFm] = "mirrored RF", | ||
| 486 | [RDr] = "rotation RD", | ||
| 487 | [RDm] = "mirrored RD", | ||
| 488 | [RBr] = "rotation RB", | ||
| 489 | [RBm] = "mirrored RB", | ||
| 490 | [LUr] = "rotation LU", | ||
| 491 | [LUm] = "mirrored LU", | ||
| 492 | [LFr] = "rotation LF", | ||
| 493 | [LFm] = "mirrored LF", | ||
| 494 | [LDr] = "rotation LD", | ||
| 495 | [LDm] = "mirrored LD", | ||
| 496 | [LBr] = "rotation LB", | ||
| 497 | [LBm] = "mirrored LB", | ||
| 498 | [FUr] = "rotation FU", | ||
| 499 | [FUm] = "mirrored FU", | ||
| 500 | [FRr] = "rotation FR", | ||
| 501 | [FRm] = "mirrored FR", | ||
| 502 | [FDr] = "rotation FD", | ||
| 503 | [FDm] = "mirrored FD", | ||
| 504 | [FLr] = "rotation FL", | ||
| 505 | [FLm] = "mirrored FL", | ||
| 506 | [BUr] = "rotation BU", | ||
| 507 | [BUm] = "mirrored BU", | ||
| 508 | [BRr] = "rotation BR", | ||
| 509 | [BRm] = "mirrored BR", | ||
| 510 | [BDr] = "rotation BD", | ||
| 511 | [BDm] = "mirrored BD", | ||
| 512 | [BLr] = "rotation BL", | ||
| 513 | [BLm] = "mirrored BL", | ||
| 514 | }; | ||
| 515 | |||
| 516 | static uint8_t inverse_trans_table[48] = { | ||
| 517 | [UFr] = UFr, | ||
| 518 | [UFm] = UFm, | ||
| 519 | [ULr] = URr, | ||
| 520 | [ULm] = ULm, | ||
| 521 | [UBr] = UBr, | ||
| 522 | [UBm] = UBm, | ||
| 523 | [URr] = ULr, | ||
| 524 | [URm] = URm, | ||
| 525 | [DFr] = DFr, | ||
| 526 | [DFm] = DFm, | ||
| 527 | [DLr] = DLr, | ||
| 528 | [DLm] = DRm, | ||
| 529 | [DBr] = DBr, | ||
| 530 | [DBm] = DBm, | ||
| 531 | [DRr] = DRr, | ||
| 532 | [DRm] = DLm, | ||
| 533 | [RUr] = FRr, | ||
| 534 | [RUm] = FLm, | ||
| 535 | [RFr] = LFr, | ||
| 536 | [RFm] = RFm, | ||
| 537 | [RDr] = BLr, | ||
| 538 | [RDm] = BRm, | ||
| 539 | [RBr] = RBr, | ||
| 540 | [RBm] = LBm, | ||
| 541 | [LUr] = FLr, | ||
| 542 | [LUm] = FRm, | ||
| 543 | [LFr] = RFr, | ||
| 544 | [LFm] = LFm, | ||
| 545 | [LDr] = BRr, | ||
| 546 | [LDm] = BLm, | ||
| 547 | [LBr] = LBr, | ||
| 548 | [LBm] = RBm, | ||
| 549 | [FUr] = FUr, | ||
| 550 | [FUm] = FUm, | ||
| 551 | [FRr] = RUr, | ||
| 552 | [FRm] = LUm, | ||
| 553 | [FDr] = BUr, | ||
| 554 | [FDm] = BUm, | ||
| 555 | [FLr] = LUr, | ||
| 556 | [FLm] = RUm, | ||
| 557 | [BUr] = FDr, | ||
| 558 | [BUm] = FDm, | ||
| 559 | [BRr] = LDr, | ||
| 560 | [BRm] = RDm, | ||
| 561 | [BDr] = BDr, | ||
| 562 | [BDm] = BDm, | ||
| 563 | [BLr] = RDr, | ||
| 564 | [BLm] = LDm, | ||
| 565 | }; | ||
| 566 | 97 | ||
| 567 | /****************************************************************************** | 98 | /****************************************************************************** |
| 568 | Section: portable fast methods | 99 | Section: portable fast methods |
| @@ -574,12 +105,6 @@ in the previous section(s) for unsupported architectures. | |||
| 574 | 105 | ||
| 575 | typedef cube_t cube_fast_t; | 106 | typedef cube_t cube_fast_t; |
| 576 | 107 | ||
| 577 | _static_inline cube_fast_t fastcube( | ||
| 578 | uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, | ||
| 579 | uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, | ||
| 580 | uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, | ||
| 581 | uint8_t, uint8_t, uint8_t, uint8_t, uint8_t | ||
| 582 | ); | ||
| 583 | _static cube_fast_t cubetofast(cube_t); | 108 | _static cube_fast_t cubetofast(cube_t); |
| 584 | _static cube_t fasttocube(cube_fast_t); | 109 | _static cube_t fasttocube(cube_fast_t); |
| 585 | _static_inline bool equal_fast(cube_fast_t, cube_fast_t); | 110 | _static_inline bool equal_fast(cube_fast_t, cube_fast_t); |
| @@ -590,44 +115,6 @@ _static_inline cube_fast_t compose_fast(cube_fast_t, cube_fast_t); | |||
| 590 | _static_inline int64_t coord_fast_co(cube_fast_t); | 115 | _static_inline int64_t coord_fast_co(cube_fast_t); |
| 591 | _static_inline int64_t coord_fast_eo(cube_fast_t); | 116 | _static_inline int64_t coord_fast_eo(cube_fast_t); |
| 592 | 117 | ||
| 593 | _static_inline cube_fast_t | ||
| 594 | fastcube( | ||
| 595 | uint8_t c_ufr, | ||
| 596 | uint8_t c_ubl, | ||
| 597 | uint8_t c_dfl, | ||
| 598 | uint8_t c_dbr, | ||
| 599 | uint8_t c_ufl, | ||
| 600 | uint8_t c_ubr, | ||
| 601 | uint8_t c_dfr, | ||
| 602 | uint8_t c_dbl, | ||
| 603 | |||
| 604 | uint8_t e_uf, | ||
| 605 | uint8_t e_ub, | ||
| 606 | uint8_t e_db, | ||
| 607 | uint8_t e_df, | ||
| 608 | uint8_t e_ur, | ||
| 609 | uint8_t e_ul, | ||
| 610 | uint8_t e_dl, | ||
| 611 | uint8_t e_dr, | ||
| 612 | uint8_t e_fr, | ||
| 613 | uint8_t e_fl, | ||
| 614 | uint8_t e_bl, | ||
| 615 | uint8_t e_br | ||
| 616 | ) | ||
| 617 | { | ||
| 618 | cube_fast_t cube = { | ||
| 619 | .corner = { | ||
| 620 | c_ufr, c_ubl, c_dfl, c_dbr, c_ufl, c_ubr, c_dfr, c_dbl | ||
| 621 | }, | ||
| 622 | .edge = { | ||
| 623 | e_uf, e_ub, e_db, e_df, e_ur, e_ul, | ||
| 624 | e_dl, e_dr, e_fr, e_fl, e_bl, e_br | ||
| 625 | } | ||
| 626 | }; | ||
| 627 | |||
| 628 | return cube; | ||
| 629 | } | ||
| 630 | |||
| 631 | _static cube_fast_t | 118 | _static cube_fast_t |
| 632 | cubetofast(cube_t cube) | 119 | cubetofast(cube_t cube) |
| 633 | { | 120 | { |
| @@ -662,7 +149,7 @@ equal_fast(cube_fast_t c1, cube_fast_t c2) | |||
| 662 | _static_inline bool | 149 | _static_inline bool |
| 663 | issolved_fast(cube_fast_t cube) | 150 | issolved_fast(cube_fast_t cube) |
| 664 | { | 151 | { |
| 665 | return equal_fast(cube, solved_fast); | 152 | return equal_fast(cube, solved); |
| 666 | } | 153 | } |
| 667 | 154 | ||
| 668 | _static_inline cube_fast_t | 155 | _static_inline cube_fast_t |
| @@ -687,7 +174,7 @@ compose_fast(cube_fast_t c1, cube_fast_t c2) | |||
| 687 | cube_fast_t ret; | 174 | cube_fast_t ret; |
| 688 | uint8_t i, piece1, piece2, p, orien, aux, auy; | 175 | uint8_t i, piece1, piece2, p, orien, aux, auy; |
| 689 | 176 | ||
| 690 | ret = zero_fast; | 177 | ret = zero; |
| 691 | 178 | ||
| 692 | for (i = 0; i < 12; i++) { | 179 | for (i = 0; i < 12; i++) { |
| 693 | piece2 = c2.edge[i]; | 180 | piece2 = c2.edge[i]; |
| @@ -742,14 +229,7 @@ Some of these routines depend on the efficient functions implemented in the | |||
| 742 | previous sections, while some other operate directly on the cube. | 229 | previous sections, while some other operate directly on the cube. |
| 743 | ******************************************************************************/ | 230 | ******************************************************************************/ |
| 744 | 231 | ||
| 745 | #define _move(M, c) compose_fast(c, _move_cube_ ## M) | ||
| 746 | #define _premove(M, c) compose_fast(_move_cube_ ## M, c) | 232 | #define _premove(M, c) compose_fast(_move_cube_ ## M, c) |
| 747 | #define _trans_rotation(T, c) \ | ||
| 748 | compose_fast(compose_fast(_trans_cube_ ## T, c), \ | ||
| 749 | _trans_cube_ ## T ## _inverse) | ||
| 750 | #define _trans_mirrored(T, c) \ | ||
| 751 | invertco_fast(compose_fast(compose_fast(_trans_cube_ ## T, c), \ | ||
| 752 | _trans_cube_ ## T ## _inverse)) | ||
| 753 | 233 | ||
| 754 | #define _foreach_move(_m, _c, _d, instruction) \ | 234 | #define _foreach_move(_m, _c, _d, instruction) \ |
| 755 | for (_m = 0; _m < 18; _m++) { _d = move(_c, _m); instruction } | 235 | for (_m = 0; _m < 18; _m++) { _d = move(_c, _m); instruction } |
| @@ -785,8 +265,8 @@ _static uint8_t readmodifier(char); | |||
| 785 | _static uint8_t readtrans(char *); | 265 | _static uint8_t readtrans(char *); |
| 786 | _static int writemoves(uint8_t *, int, char *); | 266 | _static int writemoves(uint8_t *, int, char *); |
| 787 | _static void writetrans(uint8_t, char *); | 267 | _static void writetrans(uint8_t, char *); |
| 788 | _static cube_fast_t move(cube_fast_t, uint8_t); | 268 | _static cube_fast_t move(cube_fast_t, move_t); |
| 789 | _static cube_fast_t transform(cube_fast_t, uint8_t); | 269 | _static cube_fast_t transform(cube_fast_t, trans_t); |
| 790 | 270 | ||
| 791 | cube_t | 271 | cube_t |
| 792 | solvedcube(void) | 272 | solvedcube(void) |
| @@ -1339,155 +819,22 @@ writetrans(uint8_t t, char *buf) | |||
| 1339 | } | 819 | } |
| 1340 | 820 | ||
| 1341 | _static cube_fast_t | 821 | _static cube_fast_t |
| 1342 | move(cube_fast_t c, uint8_t m) | 822 | move(cube_fast_t c, move_t m) |
| 1343 | { | 823 | { |
| 1344 | switch (m) { | 824 | return compose_fast(c, move_table[m]); |
| 1345 | case U: | ||
| 1346 | return _move(U, c); | ||
| 1347 | case U2: | ||
| 1348 | return _move(U2, c); | ||
| 1349 | case U3: | ||
| 1350 | return _move(U3, c); | ||
| 1351 | case D: | ||
| 1352 | return _move(D, c); | ||
| 1353 | case D2: | ||
| 1354 | return _move(D2, c); | ||
| 1355 | case D3: | ||
| 1356 | return _move(D3, c); | ||
| 1357 | case R: | ||
| 1358 | return _move(R, c); | ||
| 1359 | case R2: | ||
| 1360 | return _move(R2, c); | ||
| 1361 | case R3: | ||
| 1362 | return _move(R3, c); | ||
| 1363 | case L: | ||
| 1364 | return _move(L, c); | ||
| 1365 | case L2: | ||
| 1366 | return _move(L2, c); | ||
| 1367 | case L3: | ||
| 1368 | return _move(L3, c); | ||
| 1369 | case F: | ||
| 1370 | return _move(F, c); | ||
| 1371 | case F2: | ||
| 1372 | return _move(F2, c); | ||
| 1373 | case F3: | ||
| 1374 | return _move(F3, c); | ||
| 1375 | case B: | ||
| 1376 | return _move(B, c); | ||
| 1377 | case B2: | ||
| 1378 | return _move(B2, c); | ||
| 1379 | case B3: | ||
| 1380 | return _move(B3, c); | ||
| 1381 | default: | ||
| 1382 | DBG_LOG("move error, unknown move\n"); | ||
| 1383 | return zero_fast; | ||
| 1384 | } | ||
| 1385 | } | 825 | } |
| 1386 | 826 | ||
| 1387 | _static cube_fast_t | 827 | _static cube_fast_t |
| 1388 | transform(cube_fast_t c, uint8_t t) | 828 | transform(cube_fast_t c, trans_t t) |
| 1389 | { | 829 | { |
| 1390 | switch (t) { | 830 | cube_t tcube, tinv; |
| 1391 | case UFr: | 831 | |
| 1392 | return _trans_rotation(UFr, c); | 832 | tcube = trans_table[t][NORMAL]; |
| 1393 | case ULr: | 833 | tinv = trans_table[t][INVERSE]; |
| 1394 | return _trans_rotation(ULr, c); | 834 | |
| 1395 | case UBr: | 835 | return t < 24 ? |
| 1396 | return _trans_rotation(UBr, c); | 836 | compose_fast(compose_fast(tcube, c), tinv) : |
| 1397 | case URr: | 837 | invertco_fast(compose_fast(compose_fast(tcube, c), tinv)); |
| 1398 | return _trans_rotation(URr, c); | ||
| 1399 | case DFr: | ||
| 1400 | return _trans_rotation(DFr, c); | ||
| 1401 | case DLr: | ||
| 1402 | return _trans_rotation(DLr, c); | ||
| 1403 | case DBr: | ||
| 1404 | return _trans_rotation(DBr, c); | ||
| 1405 | case DRr: | ||
| 1406 | return _trans_rotation(DRr, c); | ||
| 1407 | case RUr: | ||
| 1408 | return _trans_rotation(RUr, c); | ||
| 1409 | case RFr: | ||
| 1410 | return _trans_rotation(RFr, c); | ||
| 1411 | case RDr: | ||
| 1412 | return _trans_rotation(RDr, c); | ||
| 1413 | case RBr: | ||
| 1414 | return _trans_rotation(RBr, c); | ||
| 1415 | case LUr: | ||
| 1416 | return _trans_rotation(LUr, c); | ||
| 1417 | case LFr: | ||
| 1418 | return _trans_rotation(LFr, c); | ||
| 1419 | case LDr: | ||
| 1420 | return _trans_rotation(LDr, c); | ||
| 1421 | case LBr: | ||
| 1422 | return _trans_rotation(LBr, c); | ||
| 1423 | case FUr: | ||
| 1424 | return _trans_rotation(FUr, c); | ||
| 1425 | case FRr: | ||
| 1426 | return _trans_rotation(FRr, c); | ||
| 1427 | case FDr: | ||
| 1428 | return _trans_rotation(FDr, c); | ||
| 1429 | case FLr: | ||
| 1430 | return _trans_rotation(FLr, c); | ||
| 1431 | case BUr: | ||
| 1432 | return _trans_rotation(BUr, c); | ||
| 1433 | case BRr: | ||
| 1434 | return _trans_rotation(BRr, c); | ||
| 1435 | case BDr: | ||
| 1436 | return _trans_rotation(BDr, c); | ||
| 1437 | case BLr: | ||
| 1438 | return _trans_rotation(BLr, c); | ||
| 1439 | case UFm: | ||
| 1440 | return _trans_mirrored(UFm, c); | ||
| 1441 | case ULm: | ||
| 1442 | return _trans_mirrored(ULm, c); | ||
| 1443 | case UBm: | ||
| 1444 | return _trans_mirrored(UBm, c); | ||
| 1445 | case URm: | ||
| 1446 | return _trans_mirrored(URm, c); | ||
| 1447 | case DFm: | ||
| 1448 | return _trans_mirrored(DFm, c); | ||
| 1449 | case DLm: | ||
| 1450 | return _trans_mirrored(DLm, c); | ||
| 1451 | case DBm: | ||
| 1452 | return _trans_mirrored(DBm, c); | ||
| 1453 | case DRm: | ||
| 1454 | return _trans_mirrored(DRm, c); | ||
| 1455 | case RUm: | ||
| 1456 | return _trans_mirrored(RUm, c); | ||
| 1457 | case RFm: | ||
| 1458 | return _trans_mirrored(RFm, c); | ||
| 1459 | case RDm: | ||
| 1460 | return _trans_mirrored(RDm, c); | ||
| 1461 | case RBm: | ||
| 1462 | return _trans_mirrored(RBm, c); | ||
| 1463 | case LUm: | ||
| 1464 | return _trans_mirrored(LUm, c); | ||
| 1465 | case LFm: | ||
| 1466 | return _trans_mirrored(LFm, c); | ||
| 1467 | case LDm: | ||
| 1468 | return _trans_mirrored(LDm, c); | ||
| 1469 | case LBm: | ||
| 1470 | return _trans_mirrored(LBm, c); | ||
| 1471 | case FUm: | ||
| 1472 | return _trans_mirrored(FUm, c); | ||
| 1473 | case FRm: | ||
| 1474 | return _trans_mirrored(FRm, c); | ||
| 1475 | case FDm: | ||
| 1476 | return _trans_mirrored(FDm, c); | ||
| 1477 | case FLm: | ||
| 1478 | return _trans_mirrored(FLm, c); | ||
| 1479 | case BUm: | ||
| 1480 | return _trans_mirrored(BUm, c); | ||
| 1481 | case BRm: | ||
| 1482 | return _trans_mirrored(BRm, c); | ||
| 1483 | case BDm: | ||
| 1484 | return _trans_mirrored(BDm, c); | ||
| 1485 | case BLm: | ||
| 1486 | return _trans_mirrored(BLm, c); | ||
| 1487 | default: | ||
| 1488 | DBG_LOG("transform error, unknown transformation\n"); | ||
| 1489 | return zero_fast; | ||
| 1490 | } | ||
| 1491 | } | 838 | } |
| 1492 | 839 | ||
| 1493 | /****************************************************************************** | 840 | /****************************************************************************** |
diff --git a/tables.h b/tables.h new file mode 100644 index 0000000..fa83c16 --- /dev/null +++ b/tables.h | |||
| @@ -0,0 +1,720 @@ | |||
| 1 | #define NORMAL 0 | ||
| 2 | #define INVERSE 1 | ||
| 3 | |||
| 4 | _static cube_t move_table[] = { | ||
| 5 | [U] = { | ||
| 6 | .corner = {5, 4, 2, 3, 0, 1, 6, 7}, | ||
| 7 | .edge = {4, 5, 2, 3, 1, 0, 6, 7, 8, 9, 10, 11} | ||
| 8 | }, | ||
| 9 | [U2] = { | ||
| 10 | .corner = {1, 0, 2, 3, 5, 4, 6, 7}, | ||
| 11 | .edge = {1, 0, 2, 3, 5, 4, 6, 7, 8, 9, 10, 11} | ||
| 12 | }, | ||
| 13 | [U3] = { | ||
| 14 | .corner = {4, 5, 2, 3, 1, 0, 6, 7}, | ||
| 15 | .edge = {5, 4, 2, 3, 0, 1, 6, 7, 8, 9, 10, 11} | ||
| 16 | }, | ||
| 17 | [D] = { | ||
| 18 | .corner = {0, 1, 7, 6, 4, 5, 2, 3}, | ||
| 19 | .edge = {0, 1, 7, 6, 4, 5, 2, 3, 8, 9, 10, 11} | ||
| 20 | }, | ||
| 21 | [D2] = { | ||
| 22 | .corner = {0, 1, 3, 2, 4, 5, 7, 6}, | ||
| 23 | .edge = {0, 1, 3, 2, 4, 5, 7, 6, 8, 9, 10, 11} | ||
| 24 | }, | ||
| 25 | [D3] = { | ||
| 26 | .corner = {0, 1, 6, 7, 4, 5, 3, 2}, | ||
| 27 | .edge = {0, 1, 6, 7, 4, 5, 3, 2, 8, 9, 10, 11} | ||
| 28 | }, | ||
| 29 | [R] = { | ||
| 30 | .corner = {70, 1, 2, 69, 4, 32, 35, 7}, | ||
| 31 | .edge = {0, 1, 2, 3, 8, 5, 6, 11, 7, 9, 10, 4} | ||
| 32 | }, | ||
| 33 | [R2] = { | ||
| 34 | .corner = {3, 1, 2, 0, 4, 6, 5, 7}, | ||
| 35 | .edge = {0, 1, 2, 3, 7, 5, 6, 4, 11, 9, 10, 8} | ||
| 36 | }, | ||
| 37 | [R3] = { | ||
| 38 | .corner = {69, 1, 2, 70, 4, 35, 32, 7}, | ||
| 39 | .edge = {0, 1, 2, 3, 11, 5, 6, 8, 4, 9, 10, 7} | ||
| 40 | }, | ||
| 41 | [L] = { | ||
| 42 | .corner = {0, 71, 68, 3, 33, 5, 6, 34}, | ||
| 43 | .edge = {0, 1, 2, 3, 4, 10, 9, 7, 8, 5, 6, 11} | ||
| 44 | }, | ||
| 45 | [L2] = { | ||
| 46 | .corner = {0, 2, 1, 3, 7, 5, 6, 4}, | ||
| 47 | .edge = {0, 1, 2, 3, 4, 6, 5, 7, 8, 10, 9, 11} | ||
| 48 | }, | ||
| 49 | [L3] = { | ||
| 50 | .corner = {0, 68, 71, 3, 34, 5, 6, 33}, | ||
| 51 | .edge = {0, 1, 2, 3, 4, 9, 10, 7, 8, 6, 5, 11} | ||
| 52 | }, | ||
| 53 | [F] = { | ||
| 54 | .corner = {36, 1, 38, 3, 66, 5, 64, 7}, | ||
| 55 | .edge = {25, 1, 2, 24, 4, 5, 6, 7, 16, 19, 10, 11} | ||
| 56 | }, | ||
| 57 | [F2] = { | ||
| 58 | .corner = {2, 1, 0, 3, 6, 5, 4, 7}, | ||
| 59 | .edge = {3, 1, 2, 0, 4, 5, 6, 7, 9, 8, 10, 11} | ||
| 60 | }, | ||
| 61 | [F3] = { | ||
| 62 | .corner = {38, 1, 36, 3, 64, 5, 66, 7}, | ||
| 63 | .edge = {24, 1, 2, 25, 4, 5, 6, 7, 19, 16, 10, 11} | ||
| 64 | }, | ||
| 65 | [B] = { | ||
| 66 | .corner = {0, 37, 2, 39, 4, 67, 6, 65}, | ||
| 67 | .edge = {0, 27, 26, 3, 4, 5, 6, 7, 8, 9, 17, 18} | ||
| 68 | }, | ||
| 69 | [B2] = { | ||
| 70 | .corner = {0, 3, 2, 1, 4, 7, 6, 5}, | ||
| 71 | .edge = {0, 2, 1, 3, 4, 5, 6, 7, 8, 9, 11, 10} | ||
| 72 | }, | ||
| 73 | [B3] = { | ||
| 74 | .corner = {0, 39, 2, 37, 4, 65, 6, 67}, | ||
| 75 | .edge = {0, 26, 27, 3, 4, 5, 6, 7, 8, 9, 18, 17} | ||
| 76 | }, | ||
| 77 | }; | ||
| 78 | |||
| 79 | _static cube_t trans_table[][2] = { | ||
| 80 | [UFr] = { | ||
| 81 | [NORMAL] = { | ||
| 82 | .corner = {0, 1, 2, 3, 4, 5, 6, 7}, | ||
| 83 | .edge = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} | ||
| 84 | }, | ||
| 85 | [INVERSE] = { | ||
| 86 | .corner = {0, 1, 2, 3, 4, 5, 6, 7}, | ||
| 87 | .edge = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} | ||
| 88 | } | ||
| 89 | }, | ||
| 90 | [ULr] = { | ||
| 91 | [NORMAL] = { | ||
| 92 | .corner = {4, 5, 7, 6, 1, 0, 2, 3}, | ||
| 93 | .edge = {5, 4, 7, 6, 0, 1, 2, 3, 25, 26, 27, 24} | ||
| 94 | }, | ||
| 95 | [INVERSE] = { | ||
| 96 | .corner = {5, 4, 6, 7, 0, 1, 3, 2}, | ||
| 97 | .edge = {4, 5, 6, 7, 1, 0, 3, 2, 27, 24, 25, 26} | ||
| 98 | } | ||
| 99 | }, | ||
| 100 | [UBr] = { | ||
| 101 | [NORMAL] = { | ||
| 102 | .corner = {1, 0, 3, 2, 5, 4, 7, 6}, | ||
| 103 | .edge = {1, 0, 3, 2, 5, 4, 7, 6, 10, 11, 8, 9} | ||
| 104 | }, | ||
| 105 | [INVERSE] = { | ||
| 106 | .corner = {1, 0, 3, 2, 5, 4, 7, 6}, | ||
| 107 | .edge = {1, 0, 3, 2, 5, 4, 7, 6, 10, 11, 8, 9} | ||
| 108 | } | ||
| 109 | }, | ||
| 110 | [URr] = { | ||
| 111 | [NORMAL] = { | ||
| 112 | .corner = {5, 4, 6, 7, 0, 1, 3, 2}, | ||
| 113 | .edge = {4, 5, 6, 7, 1, 0, 3, 2, 27, 24, 25, 26} | ||
| 114 | }, | ||
| 115 | [INVERSE] = { | ||
| 116 | .corner = {4, 5, 7, 6, 1, 0, 2, 3}, | ||
| 117 | .edge = {5, 4, 7, 6, 0, 1, 2, 3, 25, 26, 27, 24} | ||
| 118 | } | ||
| 119 | }, | ||
| 120 | [DFr] = { | ||
| 121 | [NORMAL] = { | ||
| 122 | .corner = {2, 3, 0, 1, 6, 7, 4, 5}, | ||
| 123 | .edge = {3, 2, 1, 0, 6, 7, 4, 5, 9, 8, 11, 10} | ||
| 124 | }, | ||
| 125 | [INVERSE] = { | ||
| 126 | .corner = {2, 3, 0, 1, 6, 7, 4, 5}, | ||
| 127 | .edge = {3, 2, 1, 0, 6, 7, 4, 5, 9, 8, 11, 10} | ||
| 128 | } | ||
| 129 | }, | ||
| 130 | [DLr] = { | ||
| 131 | [NORMAL] = { | ||
| 132 | .corner = {7, 6, 4, 5, 2, 3, 1, 0}, | ||
| 133 | .edge = {6, 7, 4, 5, 2, 3, 0, 1, 26, 25, 24, 27} | ||
| 134 | }, | ||
| 135 | [INVERSE] = { | ||
| 136 | .corner = {7, 6, 4, 5, 2, 3, 1, 0}, | ||
| 137 | .edge = {6, 7, 4, 5, 2, 3, 0, 1, 26, 25, 24, 27} | ||
| 138 | } | ||
| 139 | }, | ||
| 140 | [DBr] = { | ||
| 141 | [NORMAL] = { | ||
| 142 | .corner = {3, 2, 1, 0, 7, 6, 5, 4}, | ||
| 143 | .edge = {2, 3, 0, 1, 7, 6, 5, 4, 11, 10, 9, 8} | ||
| 144 | }, | ||
| 145 | [INVERSE] = { | ||
| 146 | .corner = {3, 2, 1, 0, 7, 6, 5, 4}, | ||
| 147 | .edge = {2, 3, 0, 1, 7, 6, 5, 4, 11, 10, 9, 8} | ||
| 148 | } | ||
| 149 | }, | ||
| 150 | [DRr] = { | ||
| 151 | [NORMAL] = { | ||
| 152 | .corner = {6, 7, 5, 4, 3, 2, 0, 1}, | ||
| 153 | .edge = {7, 6, 5, 4, 3, 2, 1, 0, 24, 27, 26, 25} | ||
| 154 | }, | ||
| 155 | [INVERSE] = { | ||
| 156 | .corner = {6, 7, 5, 4, 3, 2, 0, 1}, | ||
| 157 | .edge = {7, 6, 5, 4, 3, 2, 1, 0, 24, 27, 26, 25} | ||
| 158 | } | ||
| 159 | }, | ||
| 160 | [RUr] = { | ||
| 161 | [NORMAL] = { | ||
| 162 | .corner = {64, 67, 65, 66, 37, 38, 36, 39}, | ||
| 163 | .edge = {20, 23, 22, 21, 24, 27, 26, 25, 0, 1, 2, 3} | ||
| 164 | }, | ||
| 165 | [INVERSE] = { | ||
| 166 | .corner = {32, 34, 35, 33, 70, 68, 69, 71}, | ||
| 167 | .edge = {8, 9, 10, 11, 16, 19, 18, 17, 20, 23, 22, 21} | ||
| 168 | } | ||
| 169 | }, | ||
| 170 | [RFr] = { | ||
| 171 | [NORMAL] = { | ||
| 172 | .corner = {38, 37, 36, 39, 64, 67, 66, 65}, | ||
| 173 | .edge = {24, 27, 26, 25, 23, 20, 21, 22, 19, 16, 17, 18} | ||
| 174 | }, | ||
| 175 | [INVERSE] = { | ||
| 176 | .corner = {36, 39, 38, 37, 66, 65, 64, 67}, | ||
| 177 | .edge = {25, 26, 27, 24, 21, 22, 23, 20, 16, 19, 18, 17} | ||
| 178 | } | ||
| 179 | }, | ||
| 180 | [RDr] = { | ||
| 181 | [NORMAL] = { | ||
| 182 | .corner = {67, 64, 66, 65, 38, 37, 39, 36}, | ||
| 183 | .edge = {23, 20, 21, 22, 27, 24, 25, 26, 2, 3, 0, 1} | ||
| 184 | }, | ||
| 185 | [INVERSE] = { | ||
| 186 | .corner = {33, 35, 34, 32, 71, 69, 68, 70}, | ||
| 187 | .edge = {10, 11, 8, 9, 17, 18, 19, 16, 21, 22, 23, 20} | ||
| 188 | } | ||
| 189 | }, | ||
| 190 | [RBr] = { | ||
| 191 | [NORMAL] = { | ||
| 192 | .corner = {37, 38, 39, 36, 67, 64, 65, 66}, | ||
| 193 | .edge = {27, 24, 25, 26, 20, 23, 22, 21, 17, 18, 19, 16} | ||
| 194 | }, | ||
| 195 | [INVERSE] = { | ||
| 196 | .corner = {37, 38, 39, 36, 67, 64, 65, 66}, | ||
| 197 | .edge = {27, 24, 25, 26, 20, 23, 22, 21, 17, 18, 19, 16} | ||
| 198 | } | ||
| 199 | }, | ||
| 200 | [LUr] = { | ||
| 201 | [NORMAL] = { | ||
| 202 | .corner = {65, 66, 64, 67, 36, 39, 37, 38}, | ||
| 203 | .edge = {21, 22, 23, 20, 26, 25, 24, 27, 1, 0, 3, 2} | ||
| 204 | }, | ||
| 205 | [INVERSE] = { | ||
| 206 | .corner = {34, 32, 33, 35, 68, 70, 71, 69}, | ||
| 207 | .edge = {9, 8, 11, 10, 19, 16, 17, 18, 22, 21, 20, 23} | ||
| 208 | } | ||
| 209 | }, | ||
| 210 | [LFr] = { | ||
| 211 | [NORMAL] = { | ||
| 212 | .corner = {36, 39, 38, 37, 66, 65, 64, 67}, | ||
| 213 | .edge = {25, 26, 27, 24, 21, 22, 23, 20, 16, 19, 18, 17} | ||
| 214 | }, | ||
| 215 | [INVERSE] = { | ||
| 216 | .corner = {38, 37, 36, 39, 64, 67, 66, 65}, | ||
| 217 | .edge = {24, 27, 26, 25, 23, 20, 21, 22, 19, 16, 17, 18} | ||
| 218 | } | ||
| 219 | }, | ||
| 220 | [LDr] = { | ||
| 221 | [NORMAL] = { | ||
| 222 | .corner = {66, 65, 67, 64, 39, 36, 38, 37}, | ||
| 223 | .edge = {22, 21, 20, 23, 25, 26, 27, 24, 3, 2, 1, 0} | ||
| 224 | }, | ||
| 225 | [INVERSE] = { | ||
| 226 | .corner = {35, 33, 32, 34, 69, 71, 70, 68}, | ||
| 227 | .edge = {11, 10, 9, 8, 18, 17, 16, 19, 23, 20, 21, 22} | ||
| 228 | } | ||
| 229 | }, | ||
| 230 | [LBr] = { | ||
| 231 | [NORMAL] = { | ||
| 232 | .corner = {39, 36, 37, 38, 65, 66, 67, 64}, | ||
| 233 | .edge = {26, 25, 24, 27, 22, 21, 20, 23, 18, 17, 16, 19} | ||
| 234 | }, | ||
| 235 | [INVERSE] = { | ||
| 236 | .corner = {39, 36, 37, 38, 65, 66, 67, 64}, | ||
| 237 | .edge = {26, 25, 24, 27, 22, 21, 20, 23, 18, 17, 16, 19} | ||
| 238 | } | ||
| 239 | }, | ||
| 240 | [FUr] = { | ||
| 241 | [NORMAL] = { | ||
| 242 | .corner = {68, 70, 69, 71, 32, 34, 33, 35}, | ||
| 243 | .edge = {16, 19, 18, 17, 9, 8, 11, 10, 5, 4, 7, 6} | ||
| 244 | }, | ||
| 245 | [INVERSE] = { | ||
| 246 | .corner = {68, 70, 69, 71, 32, 34, 33, 35}, | ||
| 247 | .edge = {16, 19, 18, 17, 9, 8, 11, 10, 5, 4, 7, 6} | ||
| 248 | } | ||
| 249 | }, | ||
| 250 | [FRr] = { | ||
| 251 | [NORMAL] = { | ||
| 252 | .corner = {32, 34, 35, 33, 70, 68, 69, 71}, | ||
| 253 | .edge = {8, 9, 10, 11, 16, 19, 18, 17, 20, 23, 22, 21} | ||
| 254 | }, | ||
| 255 | [INVERSE] = { | ||
| 256 | .corner = {64, 67, 65, 66, 37, 38, 36, 39}, | ||
| 257 | .edge = {20, 23, 22, 21, 24, 27, 26, 25, 0, 1, 2, 3} | ||
| 258 | } | ||
| 259 | }, | ||
| 260 | [FDr] = { | ||
| 261 | [NORMAL] = { | ||
| 262 | .corner = {70, 68, 71, 69, 34, 32, 35, 33}, | ||
| 263 | .edge = {19, 16, 17, 18, 8, 9, 10, 11, 7, 6, 5, 4} | ||
| 264 | }, | ||
| 265 | [INVERSE] = { | ||
| 266 | .corner = {69, 71, 68, 70, 33, 35, 32, 34}, | ||
| 267 | .edge = {17, 18, 19, 16, 11, 10, 9, 8, 4, 5, 6, 7} | ||
| 268 | } | ||
| 269 | }, | ||
| 270 | [FLr] = { | ||
| 271 | [NORMAL] = { | ||
| 272 | .corner = {34, 32, 33, 35, 68, 70, 71, 69}, | ||
| 273 | .edge = {9, 8, 11, 10, 19, 16, 17, 18, 22, 21, 20, 23} | ||
| 274 | }, | ||
| 275 | [INVERSE] = { | ||
| 276 | .corner = {65, 66, 64, 67, 36, 39, 37, 38}, | ||
| 277 | .edge = {21, 22, 23, 20, 26, 25, 24, 27, 1, 0, 3, 2} | ||
| 278 | } | ||
| 279 | }, | ||
| 280 | [BUr] = { | ||
| 281 | [NORMAL] = { | ||
| 282 | .corner = {69, 71, 68, 70, 33, 35, 32, 34}, | ||
| 283 | .edge = {17, 18, 19, 16, 11, 10, 9, 8, 4, 5, 6, 7} | ||
| 284 | }, | ||
| 285 | [INVERSE] = { | ||
| 286 | .corner = {70, 68, 71, 69, 34, 32, 35, 33}, | ||
| 287 | .edge = {19, 16, 17, 18, 8, 9, 10, 11, 7, 6, 5, 4} | ||
| 288 | } | ||
| 289 | }, | ||
| 290 | [BRr] = { | ||
| 291 | [NORMAL] = { | ||
| 292 | .corner = {35, 33, 32, 34, 69, 71, 70, 68}, | ||
| 293 | .edge = {11, 10, 9, 8, 18, 17, 16, 19, 23, 20, 21, 22} | ||
| 294 | }, | ||
| 295 | [INVERSE] = { | ||
| 296 | .corner = {66, 65, 67, 64, 39, 36, 38, 37}, | ||
| 297 | .edge = {22, 21, 20, 23, 25, 26, 27, 24, 3, 2, 1, 0} | ||
| 298 | } | ||
| 299 | }, | ||
| 300 | [BDr] = { | ||
| 301 | [NORMAL] = { | ||
| 302 | .corner = {71, 69, 70, 68, 35, 33, 34, 32}, | ||
| 303 | .edge = {18, 17, 16, 19, 10, 11, 8, 9, 6, 7, 4, 5} | ||
| 304 | }, | ||
| 305 | [INVERSE] = { | ||
| 306 | .corner = {71, 69, 70, 68, 35, 33, 34, 32}, | ||
| 307 | .edge = {18, 17, 16, 19, 10, 11, 8, 9, 6, 7, 4, 5} | ||
| 308 | } | ||
| 309 | }, | ||
| 310 | [BLr] = { | ||
| 311 | [NORMAL] = { | ||
| 312 | .corner = {33, 35, 34, 32, 71, 69, 68, 70}, | ||
| 313 | .edge = {10, 11, 8, 9, 17, 18, 19, 16, 21, 22, 23, 20} | ||
| 314 | }, | ||
| 315 | [INVERSE] = { | ||
| 316 | .corner = {67, 64, 66, 65, 38, 37, 39, 36}, | ||
| 317 | .edge = {23, 20, 21, 22, 27, 24, 25, 26, 2, 3, 0, 1} | ||
| 318 | } | ||
| 319 | }, | ||
| 320 | [UFm] = { | ||
| 321 | [NORMAL] = { | ||
| 322 | .corner = {4, 5, 6, 7, 0, 1, 2, 3}, | ||
| 323 | .edge = {0, 1, 2, 3, 5, 4, 7, 6, 9, 8, 11, 10} | ||
| 324 | }, | ||
| 325 | [INVERSE] = { | ||
| 326 | .corner = {4, 5, 6, 7, 0, 1, 2, 3}, | ||
| 327 | .edge = {0, 1, 2, 3, 5, 4, 7, 6, 9, 8, 11, 10} | ||
| 328 | } | ||
| 329 | }, | ||
| 330 | [ULm] = { | ||
| 331 | [NORMAL] = { | ||
| 332 | .corner = {0, 1, 3, 2, 5, 4, 6, 7}, | ||
| 333 | .edge = {4, 5, 6, 7, 0, 1, 2, 3, 24, 27, 26, 25} | ||
| 334 | }, | ||
| 335 | [INVERSE] = { | ||
| 336 | .corner = {0, 1, 3, 2, 5, 4, 6, 7}, | ||
| 337 | .edge = {4, 5, 6, 7, 0, 1, 2, 3, 24, 27, 26, 25} | ||
| 338 | } | ||
| 339 | }, | ||
| 340 | [UBm] = { | ||
| 341 | [NORMAL] = { | ||
| 342 | .corner = {5, 4, 7, 6, 1, 0, 3, 2}, | ||
| 343 | .edge = {1, 0, 3, 2, 4, 5, 6, 7, 11, 10, 9, 8} | ||
| 344 | }, | ||
| 345 | [INVERSE] = { | ||
| 346 | .corner = {5, 4, 7, 6, 1, 0, 3, 2}, | ||
| 347 | .edge = {1, 0, 3, 2, 4, 5, 6, 7, 11, 10, 9, 8} | ||
| 348 | } | ||
| 349 | }, | ||
| 350 | [URm] = { | ||
| 351 | [NORMAL] = { | ||
| 352 | .corner = {1, 0, 2, 3, 4, 5, 7, 6}, | ||
| 353 | .edge = {5, 4, 7, 6, 1, 0, 3, 2, 26, 25, 24, 27} | ||
| 354 | }, | ||
| 355 | [INVERSE] = { | ||
| 356 | .corner = {1, 0, 2, 3, 4, 5, 7, 6}, | ||
| 357 | .edge = {5, 4, 7, 6, 1, 0, 3, 2, 26, 25, 24, 27} | ||
| 358 | } | ||
| 359 | }, | ||
| 360 | [DFm] = { | ||
| 361 | [NORMAL] = { | ||
| 362 | .corner = {6, 7, 4, 5, 2, 3, 0, 1}, | ||
| 363 | .edge = {3, 2, 1, 0, 7, 6, 5, 4, 8, 9, 10, 11} | ||
| 364 | }, | ||
| 365 | [INVERSE] = { | ||
| 366 | .corner = {6, 7, 4, 5, 2, 3, 0, 1}, | ||
| 367 | .edge = {3, 2, 1, 0, 7, 6, 5, 4, 8, 9, 10, 11} | ||
| 368 | } | ||
| 369 | }, | ||
| 370 | [DLm] = { | ||
| 371 | [NORMAL] = { | ||
| 372 | .corner = {3, 2, 0, 1, 6, 7, 5, 4}, | ||
| 373 | .edge = {7, 6, 5, 4, 2, 3, 0, 1, 27, 24, 25, 26} | ||
| 374 | }, | ||
| 375 | [INVERSE] = { | ||
| 376 | .corner = {2, 3, 1, 0, 7, 6, 4, 5}, | ||
| 377 | .edge = {6, 7, 4, 5, 3, 2, 1, 0, 25, 26, 27, 24} | ||
| 378 | } | ||
| 379 | }, | ||
| 380 | [DBm] = { | ||
| 381 | [NORMAL] = { | ||
| 382 | .corner = {7, 6, 5, 4, 3, 2, 1, 0}, | ||
| 383 | .edge = {2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9} | ||
| 384 | }, | ||
| 385 | [INVERSE] = { | ||
| 386 | .corner = {7, 6, 5, 4, 3, 2, 1, 0}, | ||
| 387 | .edge = {2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9} | ||
| 388 | } | ||
| 389 | }, | ||
| 390 | [DRm] = { | ||
| 391 | [NORMAL] = { | ||
| 392 | .corner = {2, 3, 1, 0, 7, 6, 4, 5}, | ||
| 393 | .edge = {6, 7, 4, 5, 3, 2, 1, 0, 25, 26, 27, 24} | ||
| 394 | }, | ||
| 395 | [INVERSE] = { | ||
| 396 | .corner = {3, 2, 0, 1, 6, 7, 5, 4}, | ||
| 397 | .edge = {7, 6, 5, 4, 2, 3, 0, 1, 27, 24, 25, 26} | ||
| 398 | } | ||
| 399 | }, | ||
| 400 | [RUm] = { | ||
| 401 | [NORMAL] = { | ||
| 402 | .corner = {68, 71, 69, 70, 33, 34, 32, 35}, | ||
| 403 | .edge = {21, 22, 23, 20, 25, 26, 27, 24, 0, 1, 2, 3} | ||
| 404 | }, | ||
| 405 | [INVERSE] = { | ||
| 406 | .corner = {70, 68, 69, 71, 32, 34, 35, 33}, | ||
| 407 | .edge = {8, 9, 10, 11, 19, 16, 17, 18, 23, 20, 21, 22} | ||
| 408 | } | ||
| 409 | }, | ||
| 410 | [RFm] = { | ||
| 411 | [NORMAL] = { | ||
| 412 | .corner = {34, 33, 32, 35, 68, 71, 70, 69}, | ||
| 413 | .edge = {25, 26, 27, 24, 22, 21, 20, 23, 19, 16, 17, 18} | ||
| 414 | }, | ||
| 415 | [INVERSE] = { | ||
| 416 | .corner = {66, 65, 64, 67, 36, 39, 38, 37}, | ||
| 417 | .edge = {25, 26, 27, 24, 22, 21, 20, 23, 19, 16, 17, 18} | ||
| 418 | } | ||
| 419 | }, | ||
| 420 | [RDm] = { | ||
| 421 | [NORMAL] = { | ||
| 422 | .corner = {71, 68, 70, 69, 34, 33, 35, 32}, | ||
| 423 | .edge = {22, 21, 20, 23, 26, 25, 24, 27, 2, 3, 0, 1} | ||
| 424 | }, | ||
| 425 | [INVERSE] = { | ||
| 426 | .corner = {71, 69, 68, 70, 33, 35, 34, 32}, | ||
| 427 | .edge = {10, 11, 8, 9, 18, 17, 16, 19, 22, 21, 20, 23} | ||
| 428 | } | ||
| 429 | }, | ||
| 430 | [RBm] = { | ||
| 431 | [NORMAL] = { | ||
| 432 | .corner = {33, 34, 35, 32, 71, 68, 69, 70}, | ||
| 433 | .edge = {26, 25, 24, 27, 21, 22, 23, 20, 17, 18, 19, 16} | ||
| 434 | }, | ||
| 435 | [INVERSE] = { | ||
| 436 | .corner = {67, 64, 65, 66, 37, 38, 39, 36}, | ||
| 437 | .edge = {27, 24, 25, 26, 23, 20, 21, 22, 18, 17, 16, 19} | ||
| 438 | } | ||
| 439 | }, | ||
| 440 | [LUm] = { | ||
| 441 | [NORMAL] = { | ||
| 442 | .corner = {69, 70, 68, 71, 32, 35, 33, 34}, | ||
| 443 | .edge = {20, 23, 22, 21, 27, 24, 25, 26, 1, 0, 3, 2} | ||
| 444 | }, | ||
| 445 | [INVERSE] = { | ||
| 446 | .corner = {68, 70, 71, 69, 34, 32, 33, 35}, | ||
| 447 | .edge = {9, 8, 11, 10, 16, 19, 18, 17, 21, 22, 23, 20} | ||
| 448 | } | ||
| 449 | }, | ||
| 450 | [LFm] = { | ||
| 451 | [NORMAL] = { | ||
| 452 | .corner = {32, 35, 34, 33, 70, 69, 68, 71}, | ||
| 453 | .edge = {24, 27, 26, 25, 20, 23, 22, 21, 16, 19, 18, 17} | ||
| 454 | }, | ||
| 455 | [INVERSE] = { | ||
| 456 | .corner = {64, 67, 66, 65, 38, 37, 36, 39}, | ||
| 457 | .edge = {24, 27, 26, 25, 20, 23, 22, 21, 16, 19, 18, 17} | ||
| 458 | } | ||
| 459 | }, | ||
| 460 | [LDm] = { | ||
| 461 | [NORMAL] = { | ||
| 462 | .corner = {70, 69, 71, 68, 35, 32, 34, 33}, | ||
| 463 | .edge = {23, 20, 21, 22, 24, 27, 26, 25, 3, 2, 1, 0} | ||
| 464 | }, | ||
| 465 | [INVERSE] = { | ||
| 466 | .corner = {69, 71, 70, 68, 35, 33, 32, 34}, | ||
| 467 | .edge = {11, 10, 9, 8, 17, 18, 19, 16, 20, 23, 22, 21} | ||
| 468 | } | ||
| 469 | }, | ||
| 470 | [LBm] = { | ||
| 471 | [NORMAL] = { | ||
| 472 | .corner = {35, 32, 33, 34, 69, 70, 71, 68}, | ||
| 473 | .edge = {27, 24, 25, 26, 23, 20, 21, 22, 18, 17, 16, 19} | ||
| 474 | }, | ||
| 475 | [INVERSE] = { | ||
| 476 | .corner = {65, 66, 67, 64, 39, 36, 37, 38}, | ||
| 477 | .edge = {26, 25, 24, 27, 21, 22, 23, 20, 17, 18, 19, 16} | ||
| 478 | } | ||
| 479 | }, | ||
| 480 | [FUm] = { | ||
| 481 | [NORMAL] = { | ||
| 482 | .corner = {64, 66, 65, 67, 36, 38, 37, 39}, | ||
| 483 | .edge = {16, 19, 18, 17, 8, 9, 10, 11, 4, 5, 6, 7} | ||
| 484 | }, | ||
| 485 | [INVERSE] = { | ||
| 486 | .corner = {32, 34, 33, 35, 68, 70, 69, 71}, | ||
| 487 | .edge = {16, 19, 18, 17, 8, 9, 10, 11, 4, 5, 6, 7} | ||
| 488 | } | ||
| 489 | }, | ||
| 490 | [FRm] = { | ||
| 491 | [NORMAL] = { | ||
| 492 | .corner = {36, 38, 39, 37, 66, 64, 65, 67}, | ||
| 493 | .edge = {9, 8, 11, 10, 16, 19, 18, 17, 21, 22, 23, 20} | ||
| 494 | }, | ||
| 495 | [INVERSE] = { | ||
| 496 | .corner = {37, 38, 36, 39, 64, 67, 65, 66}, | ||
| 497 | .edge = {20, 23, 22, 21, 27, 24, 25, 26, 1, 0, 3, 2} | ||
| 498 | } | ||
| 499 | }, | ||
| 500 | [FDm] = { | ||
| 501 | [NORMAL] = { | ||
| 502 | .corner = {66, 64, 67, 65, 38, 36, 39, 37}, | ||
| 503 | .edge = {19, 16, 17, 18, 9, 8, 11, 10, 6, 7, 4, 5} | ||
| 504 | }, | ||
| 505 | [INVERSE] = { | ||
| 506 | .corner = {33, 35, 32, 34, 69, 71, 68, 70}, | ||
| 507 | .edge = {17, 18, 19, 16, 10, 11, 8, 9, 5, 4, 7, 6} | ||
| 508 | } | ||
| 509 | }, | ||
| 510 | [FLm] = { | ||
| 511 | [NORMAL] = { | ||
| 512 | .corner = {38, 36, 37, 39, 64, 66, 67, 65}, | ||
| 513 | .edge = {8, 9, 10, 11, 19, 16, 17, 18, 23, 20, 21, 22} | ||
| 514 | }, | ||
| 515 | [INVERSE] = { | ||
| 516 | .corner = {36, 39, 37, 38, 65, 66, 64, 67}, | ||
| 517 | .edge = {21, 22, 23, 20, 25, 26, 27, 24, 0, 1, 2, 3} | ||
| 518 | } | ||
| 519 | }, | ||
| 520 | [BUm] = { | ||
| 521 | [NORMAL] = { | ||
| 522 | .corner = {65, 67, 64, 66, 37, 39, 36, 38}, | ||
| 523 | .edge = {17, 18, 19, 16, 10, 11, 8, 9, 5, 4, 7, 6} | ||
| 524 | }, | ||
| 525 | [INVERSE] = { | ||
| 526 | .corner = {34, 32, 35, 33, 70, 68, 71, 69}, | ||
| 527 | .edge = {19, 16, 17, 18, 9, 8, 11, 10, 6, 7, 4, 5} | ||
| 528 | } | ||
| 529 | }, | ||
| 530 | [BRm] = { | ||
| 531 | [NORMAL] = { | ||
| 532 | .corner = {39, 37, 36, 38, 65, 67, 66, 64}, | ||
| 533 | .edge = {10, 11, 8, 9, 18, 17, 16, 19, 22, 21, 20, 23} | ||
| 534 | }, | ||
| 535 | [INVERSE] = { | ||
| 536 | .corner = {39, 36, 38, 37, 66, 65, 67, 64}, | ||
| 537 | .edge = {22, 21, 20, 23, 26, 25, 24, 27, 2, 3, 0, 1} | ||
| 538 | } | ||
| 539 | }, | ||
| 540 | [BDm] = { | ||
| 541 | [NORMAL] = { | ||
| 542 | .corner = {67, 65, 66, 64, 39, 37, 38, 36}, | ||
| 543 | .edge = {18, 17, 16, 19, 11, 10, 9, 8, 7, 6, 5, 4} | ||
| 544 | }, | ||
| 545 | [INVERSE] = { | ||
| 546 | .corner = {35, 33, 34, 32, 71, 69, 70, 68}, | ||
| 547 | .edge = {18, 17, 16, 19, 11, 10, 9, 8, 7, 6, 5, 4} | ||
| 548 | } | ||
| 549 | }, | ||
| 550 | [BLm] = { | ||
| 551 | [NORMAL] = { | ||
| 552 | .corner = {37, 39, 38, 36, 67, 65, 64, 66}, | ||
| 553 | .edge = {11, 10, 9, 8, 17, 18, 19, 16, 20, 23, 22, 21} | ||
| 554 | }, | ||
| 555 | [INVERSE] = { | ||
| 556 | .corner = {38, 37, 39, 36, 67, 64, 66, 65}, | ||
| 557 | .edge = {23, 20, 21, 22, 24, 27, 26, 25, 3, 2, 1, 0} | ||
| 558 | } | ||
| 559 | }, | ||
| 560 | }; | ||
| 561 | |||
| 562 | _static char *cornerstr[] = { | ||
| 563 | [_c_ufr] = "UFR", | ||
| 564 | [_c_ubl] = "UBL", | ||
| 565 | [_c_dfl] = "DFL", | ||
| 566 | [_c_dbr] = "DBR", | ||
| 567 | [_c_ufl] = "UFL", | ||
| 568 | [_c_ubr] = "UBR", | ||
| 569 | [_c_dfr] = "DFR", | ||
| 570 | [_c_dbl] = "DBL" | ||
| 571 | }; | ||
| 572 | |||
| 573 | _static char *cornerstralt[] = { | ||
| 574 | [_c_ufr] = "URF", | ||
| 575 | [_c_ubl] = "ULB", | ||
| 576 | [_c_dfl] = "DLF", | ||
| 577 | [_c_dbr] = "DRB", | ||
| 578 | [_c_ufl] = "ULF", | ||
| 579 | [_c_ubr] = "URB", | ||
| 580 | [_c_dfr] = "DRF", | ||
| 581 | [_c_dbl] = "DLB" | ||
| 582 | }; | ||
| 583 | |||
| 584 | _static char *edgestr[] = { | ||
| 585 | [_e_uf] = "UF", | ||
| 586 | [_e_ub] = "UB", | ||
| 587 | [_e_db] = "DB", | ||
| 588 | [_e_df] = "DF", | ||
| 589 | [_e_ur] = "UR", | ||
| 590 | [_e_ul] = "UL", | ||
| 591 | [_e_dl] = "DL", | ||
| 592 | [_e_dr] = "DR", | ||
| 593 | [_e_fr] = "FR", | ||
| 594 | [_e_fl] = "FL", | ||
| 595 | [_e_bl] = "BL", | ||
| 596 | [_e_br] = "BR" | ||
| 597 | }; | ||
| 598 | |||
| 599 | _static char *movestr[] = { | ||
| 600 | [U] = "U", | ||
| 601 | [U2] = "U2", | ||
| 602 | [U3] = "U'", | ||
| 603 | [D] = "D", | ||
| 604 | [D2] = "D2", | ||
| 605 | [D3] = "D'", | ||
| 606 | [R] = "R", | ||
| 607 | [R2] = "R2", | ||
| 608 | [R3] = "R'", | ||
| 609 | [L] = "L", | ||
| 610 | [L2] = "L2", | ||
| 611 | [L3] = "L'", | ||
| 612 | [F] = "F", | ||
| 613 | [F2] = "F2", | ||
| 614 | [F3] = "F'", | ||
| 615 | [B] = "B", | ||
| 616 | [B2] = "B2", | ||
| 617 | [B3] = "B'", | ||
| 618 | }; | ||
| 619 | |||
| 620 | _static char *transstr[] = { | ||
| 621 | [UFr] = "rotation UF", | ||
| 622 | [UFm] = "mirrored UF", | ||
| 623 | [ULr] = "rotation UL", | ||
| 624 | [ULm] = "mirrored UL", | ||
| 625 | [UBr] = "rotation UB", | ||
| 626 | [UBm] = "mirrored UB", | ||
| 627 | [URr] = "rotation UR", | ||
| 628 | [URm] = "mirrored UR", | ||
| 629 | [DFr] = "rotation DF", | ||
| 630 | [DFm] = "mirrored DF", | ||
| 631 | [DLr] = "rotation DL", | ||
| 632 | [DLm] = "mirrored DL", | ||
| 633 | [DBr] = "rotation DB", | ||
| 634 | [DBm] = "mirrored DB", | ||
| 635 | [DRr] = "rotation DR", | ||
| 636 | [DRm] = "mirrored DR", | ||
| 637 | [RUr] = "rotation RU", | ||
| 638 | [RUm] = "mirrored RU", | ||
| 639 | [RFr] = "rotation RF", | ||
| 640 | [RFm] = "mirrored RF", | ||
| 641 | [RDr] = "rotation RD", | ||
| 642 | [RDm] = "mirrored RD", | ||
| 643 | [RBr] = "rotation RB", | ||
| 644 | [RBm] = "mirrored RB", | ||
| 645 | [LUr] = "rotation LU", | ||
| 646 | [LUm] = "mirrored LU", | ||
| 647 | [LFr] = "rotation LF", | ||
| 648 | [LFm] = "mirrored LF", | ||
| 649 | [LDr] = "rotation LD", | ||
| 650 | [LDm] = "mirrored LD", | ||
| 651 | [LBr] = "rotation LB", | ||
| 652 | [LBm] = "mirrored LB", | ||
| 653 | [FUr] = "rotation FU", | ||
| 654 | [FUm] = "mirrored FU", | ||
| 655 | [FRr] = "rotation FR", | ||
| 656 | [FRm] = "mirrored FR", | ||
| 657 | [FDr] = "rotation FD", | ||
| 658 | [FDm] = "mirrored FD", | ||
| 659 | [FLr] = "rotation FL", | ||
| 660 | [FLm] = "mirrored FL", | ||
| 661 | [BUr] = "rotation BU", | ||
| 662 | [BUm] = "mirrored BU", | ||
| 663 | [BRr] = "rotation BR", | ||
| 664 | [BRm] = "mirrored BR", | ||
| 665 | [BDr] = "rotation BD", | ||
| 666 | [BDm] = "mirrored BD", | ||
| 667 | [BLr] = "rotation BL", | ||
| 668 | [BLm] = "mirrored BL", | ||
| 669 | }; | ||
| 670 | |||
| 671 | static uint8_t inverse_trans_table[48] = { | ||
| 672 | [UFr] = UFr, | ||
| 673 | [UFm] = UFm, | ||
| 674 | [ULr] = URr, | ||
| 675 | [ULm] = ULm, | ||
| 676 | [UBr] = UBr, | ||
| 677 | [UBm] = UBm, | ||
| 678 | [URr] = ULr, | ||
| 679 | [URm] = URm, | ||
| 680 | [DFr] = DFr, | ||
| 681 | [DFm] = DFm, | ||
| 682 | [DLr] = DLr, | ||
| 683 | [DLm] = DRm, | ||
| 684 | [DBr] = DBr, | ||
| 685 | [DBm] = DBm, | ||
| 686 | [DRr] = DRr, | ||
| 687 | [DRm] = DLm, | ||
| 688 | [RUr] = FRr, | ||
| 689 | [RUm] = FLm, | ||
| 690 | [RFr] = LFr, | ||
| 691 | [RFm] = RFm, | ||
| 692 | [RDr] = BLr, | ||
| 693 | [RDm] = BRm, | ||
| 694 | [RBr] = RBr, | ||
| 695 | [RBm] = LBm, | ||
| 696 | [LUr] = FLr, | ||
| 697 | [LUm] = FRm, | ||
| 698 | [LFr] = RFr, | ||
| 699 | [LFm] = LFm, | ||
| 700 | [LDr] = BRr, | ||
| 701 | [LDm] = BLm, | ||
| 702 | [LBr] = LBr, | ||
| 703 | [LBm] = RBm, | ||
| 704 | [FUr] = FUr, | ||
| 705 | [FUm] = FUm, | ||
| 706 | [FRr] = RUr, | ||
| 707 | [FRm] = LUm, | ||
| 708 | [FDr] = BUr, | ||
| 709 | [FDm] = BUm, | ||
| 710 | [FLr] = LUr, | ||
| 711 | [FLm] = RUm, | ||
| 712 | [BUr] = FDr, | ||
| 713 | [BUm] = FDm, | ||
| 714 | [BRr] = LDr, | ||
| 715 | [BRm] = RDm, | ||
| 716 | [BDr] = BDr, | ||
| 717 | [BDm] = BDm, | ||
| 718 | [BLr] = RDr, | ||
| 719 | [BLm] = LDm, | ||
| 720 | }; | ||
diff --git a/utils/genmovecode.sh b/utils/genmovecode.sh new file mode 100755 index 0000000..25ad039 --- /dev/null +++ b/utils/genmovecode.sh | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | gcc -DDEBUG h48_to_lst.c ../cube.c -o h48_to_lst | ||
| 4 | |||
| 5 | gen() { | ||
| 6 | for f in move_??_*.txt; do | ||
| 7 | move="$(echo $f | sed 's/.*_// ; s/\.txt//')" | ||
| 8 | lst="$(./h48_to_lst <$f)" | ||
| 9 | c="$(echo $lst | cut -d ' ' -f -8 | rev | cut -c 2- | rev)" | ||
| 10 | e="$(echo $lst | cut -d ' ' -f 9-)" | ||
| 11 | printf '[%s] = {\n' "$move" | ||
| 12 | printf '\t.corner = {%s},\n' "$c" | ||
| 13 | printf '\t.edge = {%s}\n' "$e" | ||
| 14 | printf '},\n' | ||
| 15 | done | ||
| 16 | } | ||
| 17 | |||
| 18 | gen | ||
| 19 | rm -f h48_to_lst invert | ||
diff --git a/utils/gentranscode.sh b/utils/gentranscode.sh new file mode 100755 index 0000000..4fe7df8 --- /dev/null +++ b/utils/gentranscode.sh | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | gcc -DDEBUG h48_to_lst.c ../cube.c -o h48_to_lst | ||
| 4 | gcc -DDEBUG invert.c ../cube.c -o invert | ||
| 5 | |||
| 6 | lineavx() { printf '#define _trans_cube_%s ' "$1"; } | ||
| 7 | linesrc() { printf '_static cube_fast_t _trans_cube_%s = ' "$1"; } | ||
| 8 | sedavx() { sed '1,2s/$/ \\/ ; 3s/$/)/ ; 3q'; } | ||
| 9 | sedsrc() { sed '3s/$/ };/ ; 3q'; } | ||
| 10 | |||
| 11 | gen() { | ||
| 12 | for f in transform_??_???.txt; do | ||
| 13 | trans="$(echo $f | sed 's/.*_// ; s/\.txt//')" | ||
| 14 | printf '[%s] = {\n' "$trans" | ||
| 15 | |||
| 16 | printf '\t[NORMAL] = {\n' | ||
| 17 | lst="$(./h48_to_lst <"$f")" | ||
| 18 | c="$(echo $lst | cut -d ' ' -f -8 | rev | cut -c 2- | rev)" | ||
| 19 | e="$(echo $lst | cut -d ' ' -f 9-)" | ||
| 20 | printf '\t\t.corner = {%s},\n' "$c" | ||
| 21 | printf '\t\t.edge = {%s}\n' "$e" | ||
| 22 | printf '\t},\n' | ||
| 23 | |||
| 24 | printf '\t[INVERSE] = {\n' | ||
| 25 | inv="$(./invert <"$f" | ./h48_to_lst)" | ||
| 26 | c="$(echo $inv | cut -d ' ' -f -8 | rev | cut -c 2- | rev)" | ||
| 27 | e="$(echo $inv | cut -d ' ' -f 9-)" | ||
| 28 | printf '\t\t.corner = {%s},\n' "$c" | ||
| 29 | printf '\t\t.edge = {%s}\n' "$e" | ||
| 30 | printf '\t}\n' | ||
| 31 | |||
| 32 | printf '},\n' | ||
| 33 | done | ||
| 34 | } | ||
| 35 | |||
| 36 | gen | ||
| 37 | rm -f h48_to_lst invert | ||
diff --git a/utils/h48_to_lst.c b/utils/h48_to_lst.c new file mode 100644 index 0000000..21615d5 --- /dev/null +++ b/utils/h48_to_lst.c | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #include <stdio.h> | ||
| 2 | #include <inttypes.h> | ||
| 3 | #include <stdbool.h> | ||
| 4 | |||
| 5 | #include "../cube.h" | ||
| 6 | |||
| 7 | #define STRLENMAX 1000 | ||
| 8 | |||
| 9 | int main(void) { | ||
| 10 | char str[STRLENMAX]; | ||
| 11 | cube_t cube; | ||
| 12 | |||
| 13 | fgets(str, STRLENMAX, stdin); | ||
| 14 | cube = readcube("H48", str); | ||
| 15 | writecube("LST", cube, str); | ||
| 16 | fputs(str, stdout); | ||
| 17 | |||
| 18 | return 0; | ||
| 19 | } | ||
diff --git a/utils/invert.c b/utils/invert.c new file mode 100644 index 0000000..ff01bee --- /dev/null +++ b/utils/invert.c | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #include <stdio.h> | ||
| 2 | #include <inttypes.h> | ||
| 3 | #include <stdbool.h> | ||
| 4 | |||
| 5 | #include "../cube.h" | ||
| 6 | |||
| 7 | #define STRLENMAX 1000 | ||
| 8 | |||
| 9 | int main(void) { | ||
| 10 | char str[STRLENMAX]; | ||
| 11 | cube_t cube; | ||
| 12 | |||
| 13 | fgets(str, STRLENMAX, stdin); | ||
| 14 | cube = readcube("H48", str); | ||
| 15 | writecube("H48", inverse(cube), str); | ||
| 16 | fputs(str, stdout); | ||
| 17 | |||
| 18 | return 0; | ||
| 19 | } | ||
diff --git a/utils/mirror.sh b/utils/mirror.sh new file mode 100755 index 0000000..41a434f --- /dev/null +++ b/utils/mirror.sh | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | tr 'LR' 'RL' | ||
diff --git a/utils/move_00_U.txt b/utils/move_00_U.txt new file mode 100644 index 0000000..b5b36ad --- /dev/null +++ b/utils/move_00_U.txt | |||
| @@ -0,0 +1 @@ | |||
| UR0 UL0 DB0 DF0 UB0 UF0 DL0 DR0 FR0 FL0 BL0 BR0 UBR0 UFL0 DFL0 DBR0 UFR0 UBL0 DFR0 DBL0 | |||
diff --git a/utils/move_01_U2.txt b/utils/move_01_U2.txt new file mode 100644 index 0000000..316ad57 --- /dev/null +++ b/utils/move_01_U2.txt | |||
| @@ -0,0 +1 @@ | |||
| UB0 UF0 DB0 DF0 UL0 UR0 DL0 DR0 FR0 FL0 BL0 BR0 UBL0 UFR0 DFL0 DBR0 UBR0 UFL0 DFR0 DBL0 | |||
diff --git a/utils/move_02_U3.txt b/utils/move_02_U3.txt new file mode 100644 index 0000000..7721ab5 --- /dev/null +++ b/utils/move_02_U3.txt | |||
| @@ -0,0 +1 @@ | |||
| UL0 UR0 DB0 DF0 UF0 UB0 DL0 DR0 FR0 FL0 BL0 BR0 UFL0 UBR0 DFL0 DBR0 UBL0 UFR0 DFR0 DBL0 | |||
diff --git a/utils/move_03_D.txt b/utils/move_03_D.txt new file mode 100644 index 0000000..cf4f816 --- /dev/null +++ b/utils/move_03_D.txt | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DR0 DL0 UR0 UL0 DB0 DF0 FR0 FL0 BL0 BR0 UFR0 UBL0 DBL0 DFR0 UFL0 UBR0 DFL0 DBR0 | |||
diff --git a/utils/move_04_D2.txt b/utils/move_04_D2.txt new file mode 100644 index 0000000..13b229e --- /dev/null +++ b/utils/move_04_D2.txt | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DF0 DB0 UR0 UL0 DR0 DL0 FR0 FL0 BL0 BR0 UFR0 UBL0 DBR0 DFL0 UFL0 UBR0 DBL0 DFR0 | |||
diff --git a/utils/move_05_D3.txt b/utils/move_05_D3.txt new file mode 100644 index 0000000..2864f5b --- /dev/null +++ b/utils/move_05_D3.txt | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DL0 DR0 UR0 UL0 DF0 DB0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFR0 DBL0 UFL0 UBR0 DBR0 DFL0 | |||
diff --git a/utils/move_06_R.txt b/utils/move_06_R.txt new file mode 100644 index 0000000..8c8fcb3 --- /dev/null +++ b/utils/move_06_R.txt | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DB0 DF0 FR0 UL0 DL0 BR0 DR0 FL0 BL0 UR0 DFR2 UBL0 DFL0 UBR2 UFL0 UFR1 DBR1 DBL0 | |||
diff --git a/utils/move_07_R2.txt b/utils/move_07_R2.txt new file mode 100644 index 0000000..90765e2 --- /dev/null +++ b/utils/move_07_R2.txt | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DB0 DF0 DR0 UL0 DL0 UR0 BR0 FL0 BL0 FR0 DBR0 UBL0 DFL0 UFR0 UFL0 DFR0 UBR0 DBL0 | |||
diff --git a/utils/move_08_R3.txt b/utils/move_08_R3.txt new file mode 100644 index 0000000..d4abffc --- /dev/null +++ b/utils/move_08_R3.txt | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DB0 DF0 BR0 UL0 DL0 FR0 UR0 FL0 BL0 DR0 UBR2 UBL0 DFL0 DFR2 UFL0 DBR1 UFR1 DBL0 | |||
diff --git a/utils/move_09_L.txt b/utils/move_09_L.txt new file mode 100644 index 0000000..0b0565c --- /dev/null +++ b/utils/move_09_L.txt | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DB0 DF0 UR0 BL0 FL0 DR0 FR0 UL0 DL0 BR0 UFR0 DBL2 UFL2 DBR0 UBL1 UBR0 DFR0 DFL1 | |||
diff --git a/utils/move_10_L2.txt b/utils/move_10_L2.txt new file mode 100644 index 0000000..2498c87 --- /dev/null +++ b/utils/move_10_L2.txt | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DB0 DF0 UR0 DL0 UL0 DR0 FR0 BL0 FL0 BR0 UFR0 DFL0 UBL0 DBR0 DBL0 UBR0 DFR0 UFL0 | |||
diff --git a/utils/move_11_L3.txt b/utils/move_11_L3.txt new file mode 100644 index 0000000..2ac2912 --- /dev/null +++ b/utils/move_11_L3.txt | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DB0 DF0 UR0 FL0 BL0 DR0 FR0 DL0 UL0 BR0 UFR0 UFL2 DBL2 DBR0 DFL1 UBR0 DFR0 UBL1 | |||
diff --git a/utils/move_12_F.txt b/utils/move_12_F.txt new file mode 100644 index 0000000..e805af8 --- /dev/null +++ b/utils/move_12_F.txt | |||
| @@ -0,0 +1 @@ | |||
| FL1 UB0 DB0 FR1 UR0 UL0 DL0 DR0 UF1 DF1 BL0 BR0 UFL1 UBL0 DFR1 DBR0 DFL2 UBR0 UFR2 DBL0 | |||
diff --git a/utils/move_13_F2.txt b/utils/move_13_F2.txt new file mode 100644 index 0000000..8aa701f --- /dev/null +++ b/utils/move_13_F2.txt | |||
| @@ -0,0 +1 @@ | |||
| DF0 UB0 DB0 UF0 UR0 UL0 DL0 DR0 FL0 FR0 BL0 BR0 DFL0 UBL0 UFR0 DBR0 DFR0 UBR0 UFL0 DBL0 | |||
diff --git a/utils/move_14_F3.txt b/utils/move_14_F3.txt new file mode 100644 index 0000000..40f1260 --- /dev/null +++ b/utils/move_14_F3.txt | |||
| @@ -0,0 +1 @@ | |||
| FR1 UB0 DB0 FL1 UR0 UL0 DL0 DR0 DF1 UF1 BL0 BR0 DFR1 UBL0 UFL1 DBR0 UFR2 UBR0 DFL2 DBL0 | |||
diff --git a/utils/move_15_B.txt b/utils/move_15_B.txt new file mode 100644 index 0000000..f7fb13c --- /dev/null +++ b/utils/move_15_B.txt | |||
| @@ -0,0 +1 @@ | |||
| UF0 BR1 BL1 DF0 UR0 UL0 DL0 DR0 FR0 FL0 UB1 DB1 UFR0 UBR1 DFL0 DBL1 UFL0 DBR2 DFR0 UBL2 | |||
diff --git a/utils/move_16_B2.txt b/utils/move_16_B2.txt new file mode 100644 index 0000000..9b33e35 --- /dev/null +++ b/utils/move_16_B2.txt | |||
| @@ -0,0 +1 @@ | |||
| UF0 DB0 UB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BR0 BL0 UFR0 DBR0 DFL0 UBL0 UFL0 DBL0 DFR0 UBR0 | |||
diff --git a/utils/move_17_B3.txt b/utils/move_17_B3.txt new file mode 100644 index 0000000..1367517 --- /dev/null +++ b/utils/move_17_B3.txt | |||
| @@ -0,0 +1 @@ | |||
| UF0 BL1 BR1 DF0 UR0 UL0 DL0 DR0 FR0 FL0 DB1 UB1 UFR0 DBL1 DFL0 UBR1 UFL0 UBL2 DFR0 DBR2 | |||
diff --git a/utils/move_table.txt b/utils/move_table.txt new file mode 100644 index 0000000..67a146d --- /dev/null +++ b/utils/move_table.txt | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | [U] = { | ||
| 2 | .corner = {5, 4, 2, 3, 0, 1, 6, 7}, | ||
| 3 | .edge = {4, 5, 2, 3, 1, 0, 6, 7, 8, 9, 10, 11} | ||
| 4 | }, | ||
| 5 | [U2] = { | ||
| 6 | .corner = {1, 0, 2, 3, 5, 4, 6, 7}, | ||
| 7 | .edge = {1, 0, 2, 3, 5, 4, 6, 7, 8, 9, 10, 11} | ||
| 8 | }, | ||
| 9 | [U3] = { | ||
| 10 | .corner = {4, 5, 2, 3, 1, 0, 6, 7}, | ||
| 11 | .edge = {5, 4, 2, 3, 0, 1, 6, 7, 8, 9, 10, 11} | ||
| 12 | }, | ||
| 13 | [D] = { | ||
| 14 | .corner = {0, 1, 7, 6, 4, 5, 2, 3}, | ||
| 15 | .edge = {0, 1, 7, 6, 4, 5, 2, 3, 8, 9, 10, 11} | ||
| 16 | }, | ||
| 17 | [D2] = { | ||
| 18 | .corner = {0, 1, 3, 2, 4, 5, 7, 6}, | ||
| 19 | .edge = {0, 1, 3, 2, 4, 5, 7, 6, 8, 9, 10, 11} | ||
| 20 | }, | ||
| 21 | [D3] = { | ||
| 22 | .corner = {0, 1, 6, 7, 4, 5, 3, 2}, | ||
| 23 | .edge = {0, 1, 6, 7, 4, 5, 3, 2, 8, 9, 10, 11} | ||
| 24 | }, | ||
| 25 | [R] = { | ||
| 26 | .corner = {70, 1, 2, 69, 4, 32, 35, 7}, | ||
| 27 | .edge = {0, 1, 2, 3, 8, 5, 6, 11, 7, 9, 10, 4} | ||
| 28 | }, | ||
| 29 | [R2] = { | ||
| 30 | .corner = {3, 1, 2, 0, 4, 6, 5, 7}, | ||
| 31 | .edge = {0, 1, 2, 3, 7, 5, 6, 4, 11, 9, 10, 8} | ||
| 32 | }, | ||
| 33 | [R3] = { | ||
| 34 | .corner = {69, 1, 2, 70, 4, 35, 32, 7}, | ||
| 35 | .edge = {0, 1, 2, 3, 11, 5, 6, 8, 4, 9, 10, 7} | ||
| 36 | }, | ||
| 37 | [L] = { | ||
| 38 | .corner = {0, 71, 68, 3, 33, 5, 6, 34}, | ||
| 39 | .edge = {0, 1, 2, 3, 4, 10, 9, 7, 8, 5, 6, 11} | ||
| 40 | }, | ||
| 41 | [L2] = { | ||
| 42 | .corner = {0, 2, 1, 3, 7, 5, 6, 4}, | ||
| 43 | .edge = {0, 1, 2, 3, 4, 6, 5, 7, 8, 10, 9, 11} | ||
| 44 | }, | ||
| 45 | [L3] = { | ||
| 46 | .corner = {0, 68, 71, 3, 34, 5, 6, 33}, | ||
| 47 | .edge = {0, 1, 2, 3, 4, 9, 10, 7, 8, 6, 5, 11} | ||
| 48 | }, | ||
| 49 | [F] = { | ||
| 50 | .corner = {36, 1, 38, 3, 66, 5, 64, 7}, | ||
| 51 | .edge = {25, 1, 2, 24, 4, 5, 6, 7, 16, 19, 10, 11} | ||
| 52 | }, | ||
| 53 | [F2] = { | ||
| 54 | .corner = {2, 1, 0, 3, 6, 5, 4, 7}, | ||
| 55 | .edge = {3, 1, 2, 0, 4, 5, 6, 7, 9, 8, 10, 11} | ||
| 56 | }, | ||
| 57 | [F3] = { | ||
| 58 | .corner = {38, 1, 36, 3, 64, 5, 66, 7}, | ||
| 59 | .edge = {24, 1, 2, 25, 4, 5, 6, 7, 19, 16, 10, 11} | ||
| 60 | }, | ||
| 61 | [B] = { | ||
| 62 | .corner = {0, 37, 2, 39, 4, 67, 6, 65}, | ||
| 63 | .edge = {0, 27, 26, 3, 4, 5, 6, 7, 8, 9, 17, 18} | ||
| 64 | }, | ||
| 65 | [B2] = { | ||
| 66 | .corner = {0, 3, 2, 1, 4, 7, 6, 5}, | ||
| 67 | .edge = {0, 2, 1, 3, 4, 5, 6, 7, 8, 9, 11, 10} | ||
| 68 | }, | ||
| 69 | [B3] = { | ||
| 70 | .corner = {0, 39, 2, 37, 4, 65, 6, 67}, | ||
| 71 | .edge = {0, 26, 27, 3, 4, 5, 6, 7, 8, 9, 18, 17} | ||
| 72 | }, | ||
diff --git a/utils/solved.txt b/utils/solved.txt new file mode 100644 index 0000000..dff224d --- /dev/null +++ b/utils/solved.txt | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 | |||
diff --git a/utils/trans_table.txt b/utils/trans_table.txt new file mode 100644 index 0000000..cdd9fe9 --- /dev/null +++ b/utils/trans_table.txt | |||
| @@ -0,0 +1,480 @@ | |||
| 1 | [UFr] = { | ||
| 2 | [NORMAL] = { | ||
| 3 | .corner = {0, 1, 2, 3, 4, 5, 6, 7}, | ||
| 4 | .edge = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} | ||
| 5 | }, | ||
| 6 | [INVERSE] = { | ||
| 7 | .corner = {0, 1, 2, 3, 4, 5, 6, 7}, | ||
| 8 | .edge = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} | ||
| 9 | } | ||
| 10 | }, | ||
| 11 | [ULr] = { | ||
| 12 | [NORMAL] = { | ||
| 13 | .corner = {4, 5, 7, 6, 1, 0, 2, 3}, | ||
| 14 | .edge = {5, 4, 7, 6, 0, 1, 2, 3, 25, 26, 27, 24} | ||
| 15 | }, | ||
| 16 | [INVERSE] = { | ||
| 17 | .corner = {5, 4, 6, 7, 0, 1, 3, 2}, | ||
| 18 | .edge = {4, 5, 6, 7, 1, 0, 3, 2, 27, 24, 25, 26} | ||
| 19 | } | ||
| 20 | }, | ||
| 21 | [UBr] = { | ||
| 22 | [NORMAL] = { | ||
| 23 | .corner = {1, 0, 3, 2, 5, 4, 7, 6}, | ||
| 24 | .edge = {1, 0, 3, 2, 5, 4, 7, 6, 10, 11, 8, 9} | ||
| 25 | }, | ||
| 26 | [INVERSE] = { | ||
| 27 | .corner = {1, 0, 3, 2, 5, 4, 7, 6}, | ||
| 28 | .edge = {1, 0, 3, 2, 5, 4, 7, 6, 10, 11, 8, 9} | ||
| 29 | } | ||
| 30 | }, | ||
| 31 | [URr] = { | ||
| 32 | [NORMAL] = { | ||
| 33 | .corner = {5, 4, 6, 7, 0, 1, 3, 2}, | ||
| 34 | .edge = {4, 5, 6, 7, 1, 0, 3, 2, 27, 24, 25, 26} | ||
| 35 | }, | ||
| 36 | [INVERSE] = { | ||
| 37 | .corner = {4, 5, 7, 6, 1, 0, 2, 3}, | ||
| 38 | .edge = {5, 4, 7, 6, 0, 1, 2, 3, 25, 26, 27, 24} | ||
| 39 | } | ||
| 40 | }, | ||
| 41 | [DFr] = { | ||
| 42 | [NORMAL] = { | ||
| 43 | .corner = {2, 3, 0, 1, 6, 7, 4, 5}, | ||
| 44 | .edge = {3, 2, 1, 0, 6, 7, 4, 5, 9, 8, 11, 10} | ||
| 45 | }, | ||
| 46 | [INVERSE] = { | ||
| 47 | .corner = {2, 3, 0, 1, 6, 7, 4, 5}, | ||
| 48 | .edge = {3, 2, 1, 0, 6, 7, 4, 5, 9, 8, 11, 10} | ||
| 49 | } | ||
| 50 | }, | ||
| 51 | [DLr] = { | ||
| 52 | [NORMAL] = { | ||
| 53 | .corner = {7, 6, 4, 5, 2, 3, 1, 0}, | ||
| 54 | .edge = {6, 7, 4, 5, 2, 3, 0, 1, 26, 25, 24, 27} | ||
| 55 | }, | ||
| 56 | [INVERSE] = { | ||
| 57 | .corner = {7, 6, 4, 5, 2, 3, 1, 0}, | ||
| 58 | .edge = {6, 7, 4, 5, 2, 3, 0, 1, 26, 25, 24, 27} | ||
| 59 | } | ||
| 60 | }, | ||
| 61 | [DBr] = { | ||
| 62 | [NORMAL] = { | ||
| 63 | .corner = {3, 2, 1, 0, 7, 6, 5, 4}, | ||
| 64 | .edge = {2, 3, 0, 1, 7, 6, 5, 4, 11, 10, 9, 8} | ||
| 65 | }, | ||
| 66 | [INVERSE] = { | ||
| 67 | .corner = {3, 2, 1, 0, 7, 6, 5, 4}, | ||
| 68 | .edge = {2, 3, 0, 1, 7, 6, 5, 4, 11, 10, 9, 8} | ||
| 69 | } | ||
| 70 | }, | ||
| 71 | [DRr] = { | ||
| 72 | [NORMAL] = { | ||
| 73 | .corner = {6, 7, 5, 4, 3, 2, 0, 1}, | ||
| 74 | .edge = {7, 6, 5, 4, 3, 2, 1, 0, 24, 27, 26, 25} | ||
| 75 | }, | ||
| 76 | [INVERSE] = { | ||
| 77 | .corner = {6, 7, 5, 4, 3, 2, 0, 1}, | ||
| 78 | .edge = {7, 6, 5, 4, 3, 2, 1, 0, 24, 27, 26, 25} | ||
| 79 | } | ||
| 80 | }, | ||
| 81 | [RUr] = { | ||
| 82 | [NORMAL] = { | ||
| 83 | .corner = {64, 67, 65, 66, 37, 38, 36, 39}, | ||
| 84 | .edge = {20, 23, 22, 21, 24, 27, 26, 25, 0, 1, 2, 3} | ||
| 85 | }, | ||
| 86 | [INVERSE] = { | ||
| 87 | .corner = {32, 34, 35, 33, 70, 68, 69, 71}, | ||
| 88 | .edge = {8, 9, 10, 11, 16, 19, 18, 17, 20, 23, 22, 21} | ||
| 89 | } | ||
| 90 | }, | ||
| 91 | [RFr] = { | ||
| 92 | [NORMAL] = { | ||
| 93 | .corner = {38, 37, 36, 39, 64, 67, 66, 65}, | ||
| 94 | .edge = {24, 27, 26, 25, 23, 20, 21, 22, 19, 16, 17, 18} | ||
| 95 | }, | ||
| 96 | [INVERSE] = { | ||
| 97 | .corner = {36, 39, 38, 37, 66, 65, 64, 67}, | ||
| 98 | .edge = {25, 26, 27, 24, 21, 22, 23, 20, 16, 19, 18, 17} | ||
| 99 | } | ||
| 100 | }, | ||
| 101 | [RDr] = { | ||
| 102 | [NORMAL] = { | ||
| 103 | .corner = {67, 64, 66, 65, 38, 37, 39, 36}, | ||
| 104 | .edge = {23, 20, 21, 22, 27, 24, 25, 26, 2, 3, 0, 1} | ||
| 105 | }, | ||
| 106 | [INVERSE] = { | ||
| 107 | .corner = {33, 35, 34, 32, 71, 69, 68, 70}, | ||
| 108 | .edge = {10, 11, 8, 9, 17, 18, 19, 16, 21, 22, 23, 20} | ||
| 109 | } | ||
| 110 | }, | ||
| 111 | [RBr] = { | ||
| 112 | [NORMAL] = { | ||
| 113 | .corner = {37, 38, 39, 36, 67, 64, 65, 66}, | ||
| 114 | .edge = {27, 24, 25, 26, 20, 23, 22, 21, 17, 18, 19, 16} | ||
| 115 | }, | ||
| 116 | [INVERSE] = { | ||
| 117 | .corner = {37, 38, 39, 36, 67, 64, 65, 66}, | ||
| 118 | .edge = {27, 24, 25, 26, 20, 23, 22, 21, 17, 18, 19, 16} | ||
| 119 | } | ||
| 120 | }, | ||
| 121 | [LUr] = { | ||
| 122 | [NORMAL] = { | ||
| 123 | .corner = {65, 66, 64, 67, 36, 39, 37, 38}, | ||
| 124 | .edge = {21, 22, 23, 20, 26, 25, 24, 27, 1, 0, 3, 2} | ||
| 125 | }, | ||
| 126 | [INVERSE] = { | ||
| 127 | .corner = {34, 32, 33, 35, 68, 70, 71, 69}, | ||
| 128 | .edge = {9, 8, 11, 10, 19, 16, 17, 18, 22, 21, 20, 23} | ||
| 129 | } | ||
| 130 | }, | ||
| 131 | [LFr] = { | ||
| 132 | [NORMAL] = { | ||
| 133 | .corner = {36, 39, 38, 37, 66, 65, 64, 67}, | ||
| 134 | .edge = {25, 26, 27, 24, 21, 22, 23, 20, 16, 19, 18, 17} | ||
| 135 | }, | ||
| 136 | [INVERSE] = { | ||
| 137 | .corner = {38, 37, 36, 39, 64, 67, 66, 65}, | ||
| 138 | .edge = {24, 27, 26, 25, 23, 20, 21, 22, 19, 16, 17, 18} | ||
| 139 | } | ||
| 140 | }, | ||
| 141 | [LDr] = { | ||
| 142 | [NORMAL] = { | ||
| 143 | .corner = {66, 65, 67, 64, 39, 36, 38, 37}, | ||
| 144 | .edge = {22, 21, 20, 23, 25, 26, 27, 24, 3, 2, 1, 0} | ||
| 145 | }, | ||
| 146 | [INVERSE] = { | ||
| 147 | .corner = {35, 33, 32, 34, 69, 71, 70, 68}, | ||
| 148 | .edge = {11, 10, 9, 8, 18, 17, 16, 19, 23, 20, 21, 22} | ||
| 149 | } | ||
| 150 | }, | ||
| 151 | [LBr] = { | ||
| 152 | [NORMAL] = { | ||
| 153 | .corner = {39, 36, 37, 38, 65, 66, 67, 64}, | ||
| 154 | .edge = {26, 25, 24, 27, 22, 21, 20, 23, 18, 17, 16, 19} | ||
| 155 | }, | ||
| 156 | [INVERSE] = { | ||
| 157 | .corner = {39, 36, 37, 38, 65, 66, 67, 64}, | ||
| 158 | .edge = {26, 25, 24, 27, 22, 21, 20, 23, 18, 17, 16, 19} | ||
| 159 | } | ||
| 160 | }, | ||
| 161 | [FUr] = { | ||
| 162 | [NORMAL] = { | ||
| 163 | .corner = {68, 70, 69, 71, 32, 34, 33, 35}, | ||
| 164 | .edge = {16, 19, 18, 17, 9, 8, 11, 10, 5, 4, 7, 6} | ||
| 165 | }, | ||
| 166 | [INVERSE] = { | ||
| 167 | .corner = {68, 70, 69, 71, 32, 34, 33, 35}, | ||
| 168 | .edge = {16, 19, 18, 17, 9, 8, 11, 10, 5, 4, 7, 6} | ||
| 169 | } | ||
| 170 | }, | ||
| 171 | [FRr] = { | ||
| 172 | [NORMAL] = { | ||
| 173 | .corner = {32, 34, 35, 33, 70, 68, 69, 71}, | ||
| 174 | .edge = {8, 9, 10, 11, 16, 19, 18, 17, 20, 23, 22, 21} | ||
| 175 | }, | ||
| 176 | [INVERSE] = { | ||
| 177 | .corner = {64, 67, 65, 66, 37, 38, 36, 39}, | ||
| 178 | .edge = {20, 23, 22, 21, 24, 27, 26, 25, 0, 1, 2, 3} | ||
| 179 | } | ||
| 180 | }, | ||
| 181 | [FDr] = { | ||
| 182 | [NORMAL] = { | ||
| 183 | .corner = {70, 68, 71, 69, 34, 32, 35, 33}, | ||
| 184 | .edge = {19, 16, 17, 18, 8, 9, 10, 11, 7, 6, 5, 4} | ||
| 185 | }, | ||
| 186 | [INVERSE] = { | ||
| 187 | .corner = {69, 71, 68, 70, 33, 35, 32, 34}, | ||
| 188 | .edge = {17, 18, 19, 16, 11, 10, 9, 8, 4, 5, 6, 7} | ||
| 189 | } | ||
| 190 | }, | ||
| 191 | [FLr] = { | ||
| 192 | [NORMAL] = { | ||
| 193 | .corner = {34, 32, 33, 35, 68, 70, 71, 69}, | ||
| 194 | .edge = {9, 8, 11, 10, 19, 16, 17, 18, 22, 21, 20, 23} | ||
| 195 | }, | ||
| 196 | [INVERSE] = { | ||
| 197 | .corner = {65, 66, 64, 67, 36, 39, 37, 38}, | ||
| 198 | .edge = {21, 22, 23, 20, 26, 25, 24, 27, 1, 0, 3, 2} | ||
| 199 | } | ||
| 200 | }, | ||
| 201 | [BUr] = { | ||
| 202 | [NORMAL] = { | ||
| 203 | .corner = {69, 71, 68, 70, 33, 35, 32, 34}, | ||
| 204 | .edge = {17, 18, 19, 16, 11, 10, 9, 8, 4, 5, 6, 7} | ||
| 205 | }, | ||
| 206 | [INVERSE] = { | ||
| 207 | .corner = {70, 68, 71, 69, 34, 32, 35, 33}, | ||
| 208 | .edge = {19, 16, 17, 18, 8, 9, 10, 11, 7, 6, 5, 4} | ||
| 209 | } | ||
| 210 | }, | ||
| 211 | [BRr] = { | ||
| 212 | [NORMAL] = { | ||
| 213 | .corner = {35, 33, 32, 34, 69, 71, 70, 68}, | ||
| 214 | .edge = {11, 10, 9, 8, 18, 17, 16, 19, 23, 20, 21, 22} | ||
| 215 | }, | ||
| 216 | [INVERSE] = { | ||
| 217 | .corner = {66, 65, 67, 64, 39, 36, 38, 37}, | ||
| 218 | .edge = {22, 21, 20, 23, 25, 26, 27, 24, 3, 2, 1, 0} | ||
| 219 | } | ||
| 220 | }, | ||
| 221 | [BDr] = { | ||
| 222 | [NORMAL] = { | ||
| 223 | .corner = {71, 69, 70, 68, 35, 33, 34, 32}, | ||
| 224 | .edge = {18, 17, 16, 19, 10, 11, 8, 9, 6, 7, 4, 5} | ||
| 225 | }, | ||
| 226 | [INVERSE] = { | ||
| 227 | .corner = {71, 69, 70, 68, 35, 33, 34, 32}, | ||
| 228 | .edge = {18, 17, 16, 19, 10, 11, 8, 9, 6, 7, 4, 5} | ||
| 229 | } | ||
| 230 | }, | ||
| 231 | [BLr] = { | ||
| 232 | [NORMAL] = { | ||
| 233 | .corner = {33, 35, 34, 32, 71, 69, 68, 70}, | ||
| 234 | .edge = {10, 11, 8, 9, 17, 18, 19, 16, 21, 22, 23, 20} | ||
| 235 | }, | ||
| 236 | [INVERSE] = { | ||
| 237 | .corner = {67, 64, 66, 65, 38, 37, 39, 36}, | ||
| 238 | .edge = {23, 20, 21, 22, 27, 24, 25, 26, 2, 3, 0, 1} | ||
| 239 | } | ||
| 240 | }, | ||
| 241 | [UFm] = { | ||
| 242 | [NORMAL] = { | ||
| 243 | .corner = {4, 5, 6, 7, 0, 1, 2, 3}, | ||
| 244 | .edge = {0, 1, 2, 3, 5, 4, 7, 6, 9, 8, 11, 10} | ||
| 245 | }, | ||
| 246 | [INVERSE] = { | ||
| 247 | .corner = {4, 5, 6, 7, 0, 1, 2, 3}, | ||
| 248 | .edge = {0, 1, 2, 3, 5, 4, 7, 6, 9, 8, 11, 10} | ||
| 249 | } | ||
| 250 | }, | ||
| 251 | [ULm] = { | ||
| 252 | [NORMAL] = { | ||
| 253 | .corner = {0, 1, 3, 2, 5, 4, 6, 7}, | ||
| 254 | .edge = {4, 5, 6, 7, 0, 1, 2, 3, 24, 27, 26, 25} | ||
| 255 | }, | ||
| 256 | [INVERSE] = { | ||
| 257 | .corner = {0, 1, 3, 2, 5, 4, 6, 7}, | ||
| 258 | .edge = {4, 5, 6, 7, 0, 1, 2, 3, 24, 27, 26, 25} | ||
| 259 | } | ||
| 260 | }, | ||
| 261 | [UBm] = { | ||
| 262 | [NORMAL] = { | ||
| 263 | .corner = {5, 4, 7, 6, 1, 0, 3, 2}, | ||
| 264 | .edge = {1, 0, 3, 2, 4, 5, 6, 7, 11, 10, 9, 8} | ||
| 265 | }, | ||
| 266 | [INVERSE] = { | ||
| 267 | .corner = {5, 4, 7, 6, 1, 0, 3, 2}, | ||
| 268 | .edge = {1, 0, 3, 2, 4, 5, 6, 7, 11, 10, 9, 8} | ||
| 269 | } | ||
| 270 | }, | ||
| 271 | [URm] = { | ||
| 272 | [NORMAL] = { | ||
| 273 | .corner = {1, 0, 2, 3, 4, 5, 7, 6}, | ||
| 274 | .edge = {5, 4, 7, 6, 1, 0, 3, 2, 26, 25, 24, 27} | ||
| 275 | }, | ||
| 276 | [INVERSE] = { | ||
| 277 | .corner = {1, 0, 2, 3, 4, 5, 7, 6}, | ||
| 278 | .edge = {5, 4, 7, 6, 1, 0, 3, 2, 26, 25, 24, 27} | ||
| 279 | } | ||
| 280 | }, | ||
| 281 | [DFm] = { | ||
| 282 | [NORMAL] = { | ||
| 283 | .corner = {6, 7, 4, 5, 2, 3, 0, 1}, | ||
| 284 | .edge = {3, 2, 1, 0, 7, 6, 5, 4, 8, 9, 10, 11} | ||
| 285 | }, | ||
| 286 | [INVERSE] = { | ||
| 287 | .corner = {6, 7, 4, 5, 2, 3, 0, 1}, | ||
| 288 | .edge = {3, 2, 1, 0, 7, 6, 5, 4, 8, 9, 10, 11} | ||
| 289 | } | ||
| 290 | }, | ||
| 291 | [DLm] = { | ||
| 292 | [NORMAL] = { | ||
| 293 | .corner = {3, 2, 0, 1, 6, 7, 5, 4}, | ||
| 294 | .edge = {7, 6, 5, 4, 2, 3, 0, 1, 27, 24, 25, 26} | ||
| 295 | }, | ||
| 296 | [INVERSE] = { | ||
| 297 | .corner = {2, 3, 1, 0, 7, 6, 4, 5}, | ||
| 298 | .edge = {6, 7, 4, 5, 3, 2, 1, 0, 25, 26, 27, 24} | ||
| 299 | } | ||
| 300 | }, | ||
| 301 | [DBm] = { | ||
| 302 | [NORMAL] = { | ||
| 303 | .corner = {7, 6, 5, 4, 3, 2, 1, 0}, | ||
| 304 | .edge = {2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9} | ||
| 305 | }, | ||
| 306 | [INVERSE] = { | ||
| 307 | .corner = {7, 6, 5, 4, 3, 2, 1, 0}, | ||
| 308 | .edge = {2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9} | ||
| 309 | } | ||
| 310 | }, | ||
| 311 | [DRm] = { | ||
| 312 | [NORMAL] = { | ||
| 313 | .corner = {2, 3, 1, 0, 7, 6, 4, 5}, | ||
| 314 | .edge = {6, 7, 4, 5, 3, 2, 1, 0, 25, 26, 27, 24} | ||
| 315 | }, | ||
| 316 | [INVERSE] = { | ||
| 317 | .corner = {3, 2, 0, 1, 6, 7, 5, 4}, | ||
| 318 | .edge = {7, 6, 5, 4, 2, 3, 0, 1, 27, 24, 25, 26} | ||
| 319 | } | ||
| 320 | }, | ||
| 321 | [RUm] = { | ||
| 322 | [NORMAL] = { | ||
| 323 | .corner = {68, 71, 69, 70, 33, 34, 32, 35}, | ||
| 324 | .edge = {21, 22, 23, 20, 25, 26, 27, 24, 0, 1, 2, 3} | ||
| 325 | }, | ||
| 326 | [INVERSE] = { | ||
| 327 | .corner = {70, 68, 69, 71, 32, 34, 35, 33}, | ||
| 328 | .edge = {8, 9, 10, 11, 19, 16, 17, 18, 23, 20, 21, 22} | ||
| 329 | } | ||
| 330 | }, | ||
| 331 | [RFm] = { | ||
| 332 | [NORMAL] = { | ||
| 333 | .corner = {34, 33, 32, 35, 68, 71, 70, 69}, | ||
| 334 | .edge = {25, 26, 27, 24, 22, 21, 20, 23, 19, 16, 17, 18} | ||
| 335 | }, | ||
| 336 | [INVERSE] = { | ||
| 337 | .corner = {66, 65, 64, 67, 36, 39, 38, 37}, | ||
| 338 | .edge = {25, 26, 27, 24, 22, 21, 20, 23, 19, 16, 17, 18} | ||
| 339 | } | ||
| 340 | }, | ||
| 341 | [RDm] = { | ||
| 342 | [NORMAL] = { | ||
| 343 | .corner = {71, 68, 70, 69, 34, 33, 35, 32}, | ||
| 344 | .edge = {22, 21, 20, 23, 26, 25, 24, 27, 2, 3, 0, 1} | ||
| 345 | }, | ||
| 346 | [INVERSE] = { | ||
| 347 | .corner = {71, 69, 68, 70, 33, 35, 34, 32}, | ||
| 348 | .edge = {10, 11, 8, 9, 18, 17, 16, 19, 22, 21, 20, 23} | ||
| 349 | } | ||
| 350 | }, | ||
| 351 | [RBm] = { | ||
| 352 | [NORMAL] = { | ||
| 353 | .corner = {33, 34, 35, 32, 71, 68, 69, 70}, | ||
| 354 | .edge = {26, 25, 24, 27, 21, 22, 23, 20, 17, 18, 19, 16} | ||
| 355 | }, | ||
| 356 | [INVERSE] = { | ||
| 357 | .corner = {67, 64, 65, 66, 37, 38, 39, 36}, | ||
| 358 | .edge = {27, 24, 25, 26, 23, 20, 21, 22, 18, 17, 16, 19} | ||
| 359 | } | ||
| 360 | }, | ||
| 361 | [LUm] = { | ||
| 362 | [NORMAL] = { | ||
| 363 | .corner = {69, 70, 68, 71, 32, 35, 33, 34}, | ||
| 364 | .edge = {20, 23, 22, 21, 27, 24, 25, 26, 1, 0, 3, 2} | ||
| 365 | }, | ||
| 366 | [INVERSE] = { | ||
| 367 | .corner = {68, 70, 71, 69, 34, 32, 33, 35}, | ||
| 368 | .edge = {9, 8, 11, 10, 16, 19, 18, 17, 21, 22, 23, 20} | ||
| 369 | } | ||
| 370 | }, | ||
| 371 | [LFm] = { | ||
| 372 | [NORMAL] = { | ||
| 373 | .corner = {32, 35, 34, 33, 70, 69, 68, 71}, | ||
| 374 | .edge = {24, 27, 26, 25, 20, 23, 22, 21, 16, 19, 18, 17} | ||
| 375 | }, | ||
| 376 | [INVERSE] = { | ||
| 377 | .corner = {64, 67, 66, 65, 38, 37, 36, 39}, | ||
| 378 | .edge = {24, 27, 26, 25, 20, 23, 22, 21, 16, 19, 18, 17} | ||
| 379 | } | ||
| 380 | }, | ||
| 381 | [LDm] = { | ||
| 382 | [NORMAL] = { | ||
| 383 | .corner = {70, 69, 71, 68, 35, 32, 34, 33}, | ||
| 384 | .edge = {23, 20, 21, 22, 24, 27, 26, 25, 3, 2, 1, 0} | ||
| 385 | }, | ||
| 386 | [INVERSE] = { | ||
| 387 | .corner = {69, 71, 70, 68, 35, 33, 32, 34}, | ||
| 388 | .edge = {11, 10, 9, 8, 17, 18, 19, 16, 20, 23, 22, 21} | ||
| 389 | } | ||
| 390 | }, | ||
| 391 | [LBm] = { | ||
| 392 | [NORMAL] = { | ||
| 393 | .corner = {35, 32, 33, 34, 69, 70, 71, 68}, | ||
| 394 | .edge = {27, 24, 25, 26, 23, 20, 21, 22, 18, 17, 16, 19} | ||
| 395 | }, | ||
| 396 | [INVERSE] = { | ||
| 397 | .corner = {65, 66, 67, 64, 39, 36, 37, 38}, | ||
| 398 | .edge = {26, 25, 24, 27, 21, 22, 23, 20, 17, 18, 19, 16} | ||
| 399 | } | ||
| 400 | }, | ||
| 401 | [FUm] = { | ||
| 402 | [NORMAL] = { | ||
| 403 | .corner = {64, 66, 65, 67, 36, 38, 37, 39}, | ||
| 404 | .edge = {16, 19, 18, 17, 8, 9, 10, 11, 4, 5, 6, 7} | ||
| 405 | }, | ||
| 406 | [INVERSE] = { | ||
| 407 | .corner = {32, 34, 33, 35, 68, 70, 69, 71}, | ||
| 408 | .edge = {16, 19, 18, 17, 8, 9, 10, 11, 4, 5, 6, 7} | ||
| 409 | } | ||
| 410 | }, | ||
| 411 | [FRm] = { | ||
| 412 | [NORMAL] = { | ||
| 413 | .corner = {36, 38, 39, 37, 66, 64, 65, 67}, | ||
| 414 | .edge = {9, 8, 11, 10, 16, 19, 18, 17, 21, 22, 23, 20} | ||
| 415 | }, | ||
| 416 | [INVERSE] = { | ||
| 417 | .corner = {37, 38, 36, 39, 64, 67, 65, 66}, | ||
| 418 | .edge = {20, 23, 22, 21, 27, 24, 25, 26, 1, 0, 3, 2} | ||
| 419 | } | ||
| 420 | }, | ||
| 421 | [FDm] = { | ||
| 422 | [NORMAL] = { | ||
| 423 | .corner = {66, 64, 67, 65, 38, 36, 39, 37}, | ||
| 424 | .edge = {19, 16, 17, 18, 9, 8, 11, 10, 6, 7, 4, 5} | ||
| 425 | }, | ||
| 426 | [INVERSE] = { | ||
| 427 | .corner = {33, 35, 32, 34, 69, 71, 68, 70}, | ||
| 428 | .edge = {17, 18, 19, 16, 10, 11, 8, 9, 5, 4, 7, 6} | ||
| 429 | } | ||
| 430 | }, | ||
| 431 | [FLm] = { | ||
| 432 | [NORMAL] = { | ||
| 433 | .corner = {38, 36, 37, 39, 64, 66, 67, 65}, | ||
| 434 | .edge = {8, 9, 10, 11, 19, 16, 17, 18, 23, 20, 21, 22} | ||
| 435 | }, | ||
| 436 | [INVERSE] = { | ||
| 437 | .corner = {36, 39, 37, 38, 65, 66, 64, 67}, | ||
| 438 | .edge = {21, 22, 23, 20, 25, 26, 27, 24, 0, 1, 2, 3} | ||
| 439 | } | ||
| 440 | }, | ||
| 441 | [BUm] = { | ||
| 442 | [NORMAL] = { | ||
| 443 | .corner = {65, 67, 64, 66, 37, 39, 36, 38}, | ||
| 444 | .edge = {17, 18, 19, 16, 10, 11, 8, 9, 5, 4, 7, 6} | ||
| 445 | }, | ||
| 446 | [INVERSE] = { | ||
| 447 | .corner = {34, 32, 35, 33, 70, 68, 71, 69}, | ||
| 448 | .edge = {19, 16, 17, 18, 9, 8, 11, 10, 6, 7, 4, 5} | ||
| 449 | } | ||
| 450 | }, | ||
| 451 | [BRm] = { | ||
| 452 | [NORMAL] = { | ||
| 453 | .corner = {39, 37, 36, 38, 65, 67, 66, 64}, | ||
| 454 | .edge = {10, 11, 8, 9, 18, 17, 16, 19, 22, 21, 20, 23} | ||
| 455 | }, | ||
| 456 | [INVERSE] = { | ||
| 457 | .corner = {39, 36, 38, 37, 66, 65, 67, 64}, | ||
| 458 | .edge = {22, 21, 20, 23, 26, 25, 24, 27, 2, 3, 0, 1} | ||
| 459 | } | ||
| 460 | }, | ||
| 461 | [BDm] = { | ||
| 462 | [NORMAL] = { | ||
| 463 | .corner = {67, 65, 66, 64, 39, 37, 38, 36}, | ||
| 464 | .edge = {18, 17, 16, 19, 11, 10, 9, 8, 7, 6, 5, 4} | ||
| 465 | }, | ||
| 466 | [INVERSE] = { | ||
| 467 | .corner = {35, 33, 34, 32, 71, 69, 70, 68}, | ||
| 468 | .edge = {18, 17, 16, 19, 11, 10, 9, 8, 7, 6, 5, 4} | ||
| 469 | } | ||
| 470 | }, | ||
| 471 | [BLm] = { | ||
| 472 | [NORMAL] = { | ||
| 473 | .corner = {37, 39, 38, 36, 67, 65, 64, 66}, | ||
| 474 | .edge = {11, 10, 9, 8, 17, 18, 19, 16, 20, 23, 22, 21} | ||
| 475 | }, | ||
| 476 | [INVERSE] = { | ||
| 477 | .corner = {38, 37, 39, 36, 67, 64, 66, 65}, | ||
| 478 | .edge = {23, 20, 21, 22, 24, 27, 26, 25, 3, 2, 1, 0} | ||
| 479 | } | ||
| 480 | }, | ||
diff --git a/utils/transform_00_UFr.txt b/utils/transform_00_UFr.txt new file mode 100644 index 0000000..dff224d --- /dev/null +++ b/utils/transform_00_UFr.txt | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 | |||
diff --git a/utils/transform_01_ULr.txt b/utils/transform_01_ULr.txt new file mode 100644 index 0000000..4cfb17e --- /dev/null +++ b/utils/transform_01_ULr.txt | |||
| @@ -0,0 +1 @@ | |||
| UL0 UR0 DR0 DL0 UF0 UB0 DB0 DF0 FL1 BL1 BR1 FR1 UFL0 UBR0 DBL0 DFR0 UBL0 UFR0 DFL0 DBR0 | |||
diff --git a/utils/transform_02_UBr.txt b/utils/transform_02_UBr.txt new file mode 100644 index 0000000..8c7eeb7 --- /dev/null +++ b/utils/transform_02_UBr.txt | |||
| @@ -0,0 +1 @@ | |||
| UB0 UF0 DF0 DB0 UL0 UR0 DR0 DL0 BL0 BR0 FR0 FL0 UBL0 UFR0 DBR0 DFL0 UBR0 UFL0 DBL0 DFR0 | |||
diff --git a/utils/transform_03_URr.txt b/utils/transform_03_URr.txt new file mode 100644 index 0000000..ac0e932 --- /dev/null +++ b/utils/transform_03_URr.txt | |||
| @@ -0,0 +1 @@ | |||
| UR0 UL0 DL0 DR0 UB0 UF0 DF0 DB0 BR1 FR1 FL1 BL1 UBR0 UFL0 DFR0 DBL0 UFR0 UBL0 DBR0 DFL0 | |||
diff --git a/utils/transform_04_DFr.txt b/utils/transform_04_DFr.txt new file mode 100644 index 0000000..cdecc18 --- /dev/null +++ b/utils/transform_04_DFr.txt | |||
| @@ -0,0 +1 @@ | |||
| DF0 DB0 UB0 UF0 DL0 DR0 UR0 UL0 FL0 FR0 BR0 BL0 DFL0 DBR0 UFR0 UBL0 DFR0 DBL0 UFL0 UBR0 | |||
diff --git a/utils/transform_05_DLr.txt b/utils/transform_05_DLr.txt new file mode 100644 index 0000000..fffaa54 --- /dev/null +++ b/utils/transform_05_DLr.txt | |||
| @@ -0,0 +1 @@ | |||
| DL0 DR0 UR0 UL0 DB0 DF0 UF0 UB0 BL1 FL1 FR1 BR1 DBL0 DFR0 UFL0 UBR0 DFL0 DBR0 UBL0 UFR0 | |||
diff --git a/utils/transform_06_DBr.txt b/utils/transform_06_DBr.txt new file mode 100644 index 0000000..d2434fa --- /dev/null +++ b/utils/transform_06_DBr.txt | |||
| @@ -0,0 +1 @@ | |||
| DB0 DF0 UF0 UB0 DR0 DL0 UL0 UR0 BR0 BL0 FL0 FR0 DBR0 DFL0 UBL0 UFR0 DBL0 DFR0 UBR0 UFL0 | |||
diff --git a/utils/transform_07_DRr.txt b/utils/transform_07_DRr.txt new file mode 100644 index 0000000..c03ba90 --- /dev/null +++ b/utils/transform_07_DRr.txt | |||
| @@ -0,0 +1 @@ | |||
| DR0 DL0 UL0 UR0 DF0 DB0 UB0 UF0 FR1 BR1 BL1 FL1 DFR0 DBL0 UBR0 UFL0 DBR0 DFL0 UFR0 UBL0 | |||
diff --git a/utils/transform_08_RUr.txt b/utils/transform_08_RUr.txt new file mode 100644 index 0000000..bcf6f8f --- /dev/null +++ b/utils/transform_08_RUr.txt | |||
| @@ -0,0 +1 @@ | |||
| UR1 DR1 DL1 UL1 FR1 BR1 BL1 FL1 UF0 UB0 DB0 DF0 UFR2 DBR2 UBL2 DFL2 UBR1 DFR1 UFL1 DBL1 | |||
diff --git a/utils/transform_09_RFr.txt b/utils/transform_09_RFr.txt new file mode 100644 index 0000000..5c9b9b2 --- /dev/null +++ b/utils/transform_09_RFr.txt | |||
| @@ -0,0 +1 @@ | |||
| FR1 BR1 BL1 FL1 DR1 UR1 UL1 DL1 DF1 UF1 UB1 DB1 DFR1 UBR1 UFL1 DBL1 UFR2 DBR2 DFL2 UBL2 | |||
diff --git a/utils/transform_10_RDr.txt b/utils/transform_10_RDr.txt new file mode 100644 index 0000000..3cca372 --- /dev/null +++ b/utils/transform_10_RDr.txt | |||
| @@ -0,0 +1 @@ | |||
| DR1 UR1 UL1 DL1 BR1 FR1 FL1 BL1 DB0 DF0 UF0 UB0 DBR2 UFR2 DFL2 UBL2 DFR1 UBR1 DBL1 UFL1 | |||
diff --git a/utils/transform_11_RBr.txt b/utils/transform_11_RBr.txt new file mode 100644 index 0000000..9a43c45 --- /dev/null +++ b/utils/transform_11_RBr.txt | |||
| @@ -0,0 +1 @@ | |||
| BR1 FR1 FL1 BL1 UR1 DR1 DL1 UL1 UB1 DB1 DF1 UF1 UBR1 DFR1 DBL1 UFL1 DBR2 UFR2 UBL2 DFL2 | |||
diff --git a/utils/transform_12_LUr.txt b/utils/transform_12_LUr.txt new file mode 100644 index 0000000..90c964c --- /dev/null +++ b/utils/transform_12_LUr.txt | |||
| @@ -0,0 +1 @@ | |||
| UL1 DL1 DR1 UR1 BL1 FL1 FR1 BR1 UB0 UF0 DF0 DB0 UBL2 DFL2 UFR2 DBR2 UFL1 DBL1 UBR1 DFR1 | |||
diff --git a/utils/transform_13_LFr.txt b/utils/transform_13_LFr.txt new file mode 100644 index 0000000..7c234e6 --- /dev/null +++ b/utils/transform_13_LFr.txt | |||
| @@ -0,0 +1 @@ | |||
| FL1 BL1 BR1 FR1 UL1 DL1 DR1 UR1 UF1 DF1 DB1 UB1 UFL1 DBL1 DFR1 UBR1 DFL2 UBL2 UFR2 DBR2 | |||
diff --git a/utils/transform_14_LDr.txt b/utils/transform_14_LDr.txt new file mode 100644 index 0000000..bd5f6f2 --- /dev/null +++ b/utils/transform_14_LDr.txt | |||
| @@ -0,0 +1 @@ | |||
| DL1 UL1 UR1 DR1 FL1 BL1 BR1 FR1 DF0 DB0 UB0 UF0 DFL2 UBL2 DBR2 UFR2 DBL1 UFL1 DFR1 UBR1 | |||
diff --git a/utils/transform_15_LBr.txt b/utils/transform_15_LBr.txt new file mode 100644 index 0000000..91755e0 --- /dev/null +++ b/utils/transform_15_LBr.txt | |||
| @@ -0,0 +1 @@ | |||
| BL1 FL1 FR1 BR1 DL1 UL1 UR1 DR1 DB1 UB1 UF1 DF1 DBL1 UFL1 UBR1 DFR1 UBL2 DFL2 DBR2 UFR2 | |||
diff --git a/utils/transform_16_FUr.txt b/utils/transform_16_FUr.txt new file mode 100644 index 0000000..25cc125 --- /dev/null +++ b/utils/transform_16_FUr.txt | |||
| @@ -0,0 +1 @@ | |||
| UF1 DF1 DB1 UB1 FL0 FR0 BR0 BL0 UL0 UR0 DR0 DL0 UFL2 DFR2 UBR2 DBL2 UFR1 DFL1 UBL1 DBR1 | |||
diff --git a/utils/transform_17_FRr.txt b/utils/transform_17_FRr.txt new file mode 100644 index 0000000..0c01df1 --- /dev/null +++ b/utils/transform_17_FRr.txt | |||
| @@ -0,0 +1 @@ | |||
| FR0 FL0 BL0 BR0 UF1 DF1 DB1 UB1 UR1 DR1 DL1 UL1 UFR1 DFL1 DBR1 UBL1 DFR2 UFL2 UBR2 DBL2 | |||
diff --git a/utils/transform_18_FDr.txt b/utils/transform_18_FDr.txt new file mode 100644 index 0000000..05f367f --- /dev/null +++ b/utils/transform_18_FDr.txt | |||
| @@ -0,0 +1 @@ | |||
| DF1 UF1 UB1 DB1 FR0 FL0 BL0 BR0 DR0 DL0 UL0 UR0 DFR2 UFL2 DBL2 UBR2 DFL1 UFR1 DBR1 UBL1 | |||
diff --git a/utils/transform_19_FLr.txt b/utils/transform_19_FLr.txt new file mode 100644 index 0000000..20bf2b1 --- /dev/null +++ b/utils/transform_19_FLr.txt | |||
| @@ -0,0 +1 @@ | |||
| FL0 FR0 BR0 BL0 DF1 UF1 UB1 DB1 DL1 UL1 UR1 DR1 DFL1 UFR1 UBL1 DBR1 UFL2 DFR2 DBL2 UBR2 | |||
diff --git a/utils/transform_20_BUr.txt b/utils/transform_20_BUr.txt new file mode 100644 index 0000000..0d8200e --- /dev/null +++ b/utils/transform_20_BUr.txt | |||
| @@ -0,0 +1 @@ | |||
| UB1 DB1 DF1 UF1 BR0 BL0 FL0 FR0 UR0 UL0 DL0 DR0 UBR2 DBL2 UFL2 DFR2 UBL1 DBR1 UFR1 DFL1 | |||
diff --git a/utils/transform_21_BRr.txt b/utils/transform_21_BRr.txt new file mode 100644 index 0000000..f4b3bb6 --- /dev/null +++ b/utils/transform_21_BRr.txt | |||
| @@ -0,0 +1 @@ | |||
| BR0 BL0 FL0 FR0 DB1 UB1 UF1 DF1 DR1 UR1 UL1 DL1 DBR1 UBL1 UFR1 DFL1 UBR2 DBL2 DFR2 UFL2 | |||
diff --git a/utils/transform_22_BDr.txt b/utils/transform_22_BDr.txt new file mode 100644 index 0000000..c1642e0 --- /dev/null +++ b/utils/transform_22_BDr.txt | |||
| @@ -0,0 +1 @@ | |||
| DB1 UB1 UF1 DF1 BL0 BR0 FR0 FL0 DL0 DR0 UR0 UL0 DBL2 UBR2 DFR2 UFL2 DBR1 UBL1 DFL1 UFR1 | |||
diff --git a/utils/transform_23_BLr.txt b/utils/transform_23_BLr.txt new file mode 100644 index 0000000..4394be6 --- /dev/null +++ b/utils/transform_23_BLr.txt | |||
| @@ -0,0 +1 @@ | |||
| BL0 BR0 FR0 FL0 UB1 DB1 DF1 UF1 UL1 DL1 DR1 UR1 UBL1 DBR1 DFL1 UFR1 DBL2 UBR2 UFL2 DFR2 | |||
diff --git a/utils/transform_24_UFm.txt b/utils/transform_24_UFm.txt new file mode 100644 index 0000000..7888e4b --- /dev/null +++ b/utils/transform_24_UFm.txt | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DB0 DF0 UL0 UR0 DR0 DL0 FL0 FR0 BR0 BL0 UFL0 UBR0 DFR0 DBL0 UFR0 UBL0 DFL0 DBR0 | |||
diff --git a/utils/transform_25_ULm.txt b/utils/transform_25_ULm.txt new file mode 100644 index 0000000..0abeb75 --- /dev/null +++ b/utils/transform_25_ULm.txt | |||
| @@ -0,0 +1 @@ | |||
| UR0 UL0 DL0 DR0 UF0 UB0 DB0 DF0 FR1 BR1 BL1 FL1 UFR0 UBL0 DBR0 DFL0 UBR0 UFL0 DFR0 DBL0 | |||
diff --git a/utils/transform_26_UBm.txt b/utils/transform_26_UBm.txt new file mode 100644 index 0000000..0fba52a --- /dev/null +++ b/utils/transform_26_UBm.txt | |||
| @@ -0,0 +1 @@ | |||
| UB0 UF0 DF0 DB0 UR0 UL0 DL0 DR0 BR0 BL0 FL0 FR0 UBR0 UFL0 DBL0 DFR0 UBL0 UFR0 DBR0 DFL0 | |||
diff --git a/utils/transform_27_URm.txt b/utils/transform_27_URm.txt new file mode 100644 index 0000000..49bce19 --- /dev/null +++ b/utils/transform_27_URm.txt | |||
| @@ -0,0 +1 @@ | |||
| UL0 UR0 DR0 DL0 UB0 UF0 DF0 DB0 BL1 FL1 FR1 BR1 UBL0 UFR0 DFL0 DBR0 UFL0 UBR0 DBL0 DFR0 | |||
diff --git a/utils/transform_28_DFm.txt b/utils/transform_28_DFm.txt new file mode 100644 index 0000000..442aacd --- /dev/null +++ b/utils/transform_28_DFm.txt | |||
| @@ -0,0 +1 @@ | |||
| DF0 DB0 UB0 UF0 DR0 DL0 UL0 UR0 FR0 FL0 BL0 BR0 DFR0 DBL0 UFL0 UBR0 DFL0 DBR0 UFR0 UBL0 | |||
diff --git a/utils/transform_29_DLm.txt b/utils/transform_29_DLm.txt new file mode 100644 index 0000000..d2cfc53 --- /dev/null +++ b/utils/transform_29_DLm.txt | |||
| @@ -0,0 +1 @@ | |||
| DR0 DL0 UL0 UR0 DB0 DF0 UF0 UB0 BR1 FR1 FL1 BL1 DBR0 DFL0 UFR0 UBL0 DFR0 DBL0 UBR0 UFL0 | |||
diff --git a/utils/transform_30_DBm.txt b/utils/transform_30_DBm.txt new file mode 100644 index 0000000..4d92a58 --- /dev/null +++ b/utils/transform_30_DBm.txt | |||
| @@ -0,0 +1 @@ | |||
| DB0 DF0 UF0 UB0 DL0 DR0 UR0 UL0 BL0 BR0 FR0 FL0 DBL0 DFR0 UBR0 UFL0 DBR0 DFL0 UBL0 UFR0 | |||
diff --git a/utils/transform_31_DRm.txt b/utils/transform_31_DRm.txt new file mode 100644 index 0000000..6774947 --- /dev/null +++ b/utils/transform_31_DRm.txt | |||
| @@ -0,0 +1 @@ | |||
| DL0 DR0 UR0 UL0 DF0 DB0 UB0 UF0 FL1 BL1 BR1 FR1 DFL0 DBR0 UBL0 UFR0 DBL0 DFR0 UFL0 UBR0 | |||
diff --git a/utils/transform_32_RUm.txt b/utils/transform_32_RUm.txt new file mode 100644 index 0000000..8ba9819 --- /dev/null +++ b/utils/transform_32_RUm.txt | |||
| @@ -0,0 +1 @@ | |||
| UL1 DL1 DR1 UR1 FL1 BL1 BR1 FR1 UF0 UB0 DB0 DF0 UFL2 DBL2 UBR2 DFR2 UBL1 DFL1 UFR1 DBR1 | |||
diff --git a/utils/transform_33_RFm.txt b/utils/transform_33_RFm.txt new file mode 100644 index 0000000..fb9434d --- /dev/null +++ b/utils/transform_33_RFm.txt | |||
| @@ -0,0 +1 @@ | |||
| FL1 BL1 BR1 FR1 DL1 UL1 UR1 DR1 DF1 UF1 UB1 DB1 DFL1 UBL1 UFR1 DBR1 UFL2 DBL2 DFR2 UBR2 | |||
diff --git a/utils/transform_34_RDm.txt b/utils/transform_34_RDm.txt new file mode 100644 index 0000000..96cbee8 --- /dev/null +++ b/utils/transform_34_RDm.txt | |||
| @@ -0,0 +1 @@ | |||
| DL1 UL1 UR1 DR1 BL1 FL1 FR1 BR1 DB0 DF0 UF0 UB0 DBL2 UFL2 DFR2 UBR2 DFL1 UBL1 DBR1 UFR1 | |||
diff --git a/utils/transform_35_RBm.txt b/utils/transform_35_RBm.txt new file mode 100644 index 0000000..e57c13c --- /dev/null +++ b/utils/transform_35_RBm.txt | |||
| @@ -0,0 +1 @@ | |||
| BL1 FL1 FR1 BR1 UL1 DL1 DR1 UR1 UB1 DB1 DF1 UF1 UBL1 DFL1 DBR1 UFR1 DBL2 UFL2 UBR2 DFR2 | |||
diff --git a/utils/transform_36_LUm.txt b/utils/transform_36_LUm.txt new file mode 100644 index 0000000..735768b --- /dev/null +++ b/utils/transform_36_LUm.txt | |||
| @@ -0,0 +1 @@ | |||
| UR1 DR1 DL1 UL1 BR1 FR1 FL1 BL1 UB0 UF0 DF0 DB0 UBR2 DFR2 UFL2 DBL2 UFR1 DBR1 UBL1 DFL1 | |||
diff --git a/utils/transform_37_LFm.txt b/utils/transform_37_LFm.txt new file mode 100644 index 0000000..8ee4766 --- /dev/null +++ b/utils/transform_37_LFm.txt | |||
| @@ -0,0 +1 @@ | |||
| FR1 BR1 BL1 FL1 UR1 DR1 DL1 UL1 UF1 DF1 DB1 UB1 UFR1 DBR1 DFL1 UBL1 DFR2 UBR2 UFL2 DBL2 | |||
diff --git a/utils/transform_38_LDm.txt b/utils/transform_38_LDm.txt new file mode 100644 index 0000000..4b3f54b --- /dev/null +++ b/utils/transform_38_LDm.txt | |||
| @@ -0,0 +1 @@ | |||
| DR1 UR1 UL1 DL1 FR1 BR1 BL1 FL1 DF0 DB0 UB0 UF0 DFR2 UBR2 DBL2 UFL2 DBR1 UFR1 DFL1 UBL1 | |||
diff --git a/utils/transform_39_LBm.txt b/utils/transform_39_LBm.txt new file mode 100644 index 0000000..3b98506 --- /dev/null +++ b/utils/transform_39_LBm.txt | |||
| @@ -0,0 +1 @@ | |||
| BR1 FR1 FL1 BL1 DR1 UR1 UL1 DL1 DB1 UB1 UF1 DF1 DBR1 UFR1 UBL1 DFL1 UBR2 DFR2 DBL2 UFL2 | |||
diff --git a/utils/transform_40_FUm.txt b/utils/transform_40_FUm.txt new file mode 100644 index 0000000..0c6484d --- /dev/null +++ b/utils/transform_40_FUm.txt | |||
| @@ -0,0 +1 @@ | |||
| UF1 DF1 DB1 UB1 FR0 FL0 BL0 BR0 UR0 UL0 DL0 DR0 UFR2 DFL2 UBL2 DBR2 UFL1 DFR1 UBR1 DBL1 | |||
diff --git a/utils/transform_41_FRm.txt b/utils/transform_41_FRm.txt new file mode 100644 index 0000000..cc67b5b --- /dev/null +++ b/utils/transform_41_FRm.txt | |||
| @@ -0,0 +1 @@ | |||
| FL0 FR0 BR0 BL0 UF1 DF1 DB1 UB1 UL1 DL1 DR1 UR1 UFL1 DFR1 DBL1 UBR1 DFL2 UFR2 UBL2 DBR2 | |||
diff --git a/utils/transform_42_FDm.txt b/utils/transform_42_FDm.txt new file mode 100644 index 0000000..c3d8b39 --- /dev/null +++ b/utils/transform_42_FDm.txt | |||
| @@ -0,0 +1 @@ | |||
| DF1 UF1 UB1 DB1 FL0 FR0 BR0 BL0 DL0 DR0 UR0 UL0 DFL2 UFR2 DBR2 UBL2 DFR1 UFL1 DBL1 UBR1 | |||
diff --git a/utils/transform_43_FLm.txt b/utils/transform_43_FLm.txt new file mode 100644 index 0000000..ae096e0 --- /dev/null +++ b/utils/transform_43_FLm.txt | |||
| @@ -0,0 +1 @@ | |||
| FR0 FL0 BL0 BR0 DF1 UF1 UB1 DB1 DR1 UR1 UL1 DL1 DFR1 UFL1 UBR1 DBL1 UFR2 DFL2 DBR2 UBL2 | |||
diff --git a/utils/transform_44_BUm.txt b/utils/transform_44_BUm.txt new file mode 100644 index 0000000..08d5683 --- /dev/null +++ b/utils/transform_44_BUm.txt | |||
| @@ -0,0 +1 @@ | |||
| UB1 DB1 DF1 UF1 BL0 BR0 FR0 FL0 UL0 UR0 DR0 DL0 UBL2 DBR2 UFR2 DFL2 UBR1 DBL1 UFL1 DFR1 | |||
diff --git a/utils/transform_45_BRm.txt b/utils/transform_45_BRm.txt new file mode 100644 index 0000000..167c62e --- /dev/null +++ b/utils/transform_45_BRm.txt | |||
| @@ -0,0 +1 @@ | |||
| BL0 BR0 FR0 FL0 DB1 UB1 UF1 DF1 DL1 UL1 UR1 DR1 DBL1 UBR1 UFL1 DFR1 UBL2 DBR2 DFL2 UFR2 | |||
diff --git a/utils/transform_46_BDm.txt b/utils/transform_46_BDm.txt new file mode 100644 index 0000000..f5e56f2 --- /dev/null +++ b/utils/transform_46_BDm.txt | |||
| @@ -0,0 +1 @@ | |||
| DB1 UB1 UF1 DF1 BR0 BL0 FL0 FR0 DR0 DL0 UL0 UR0 DBR2 UBL2 DFL2 UFR2 DBL1 UBR1 DFR1 UFL1 | |||
diff --git a/utils/transform_47_BLm.txt b/utils/transform_47_BLm.txt new file mode 100644 index 0000000..02b2828 --- /dev/null +++ b/utils/transform_47_BLm.txt | |||
| @@ -0,0 +1 @@ | |||
| BR0 BL0 FL0 FR0 UB1 DB1 DF1 UF1 UR1 DR1 DL1 UL1 UBR1 DBL1 DFR1 UFL1 DBR2 UBL2 UFR2 DFL2 | |||
diff --git a/utils/transform_moves.txt b/utils/transform_moves.txt new file mode 100644 index 0000000..469008b --- /dev/null +++ b/utils/transform_moves.txt | |||
| @@ -0,0 +1,95 @@ | |||
| 1 | UFr U U | ||
| 2 | UFr R R | ||
| 3 | UFr F F | ||
| 4 | |||
| 5 | ULr U U | ||
| 6 | ULr R F | ||
| 7 | ULr F L | ||
| 8 | |||
| 9 | UBr U U | ||
| 10 | UBr R L | ||
| 11 | UBr F B | ||
| 12 | |||
| 13 | URr U U | ||
| 14 | URr R B | ||
| 15 | URr F R | ||
| 16 | |||
| 17 | DFr U D | ||
| 18 | DFr R L | ||
| 19 | DFr F F | ||
| 20 | |||
| 21 | DLr U D | ||
| 22 | DLr R B | ||
| 23 | DLr F L | ||
| 24 | |||
| 25 | DBr U D | ||
| 26 | DBr R R | ||
| 27 | DBr F B | ||
| 28 | |||
| 29 | DRr U D | ||
| 30 | DRr R F | ||
| 31 | DRr F R | ||
| 32 | |||
| 33 | RUr U R | ||
| 34 | RUr R F | ||
| 35 | RUr F U | ||
| 36 | |||
| 37 | RFr U R | ||
| 38 | RFr R D | ||
| 39 | RFr F F | ||
| 40 | |||
| 41 | RDr U R | ||
| 42 | RDr R B | ||
| 43 | RDr F D | ||
| 44 | |||
| 45 | RBr U R | ||
| 46 | RBr R U | ||
| 47 | RBr F B | ||
| 48 | |||
| 49 | LUr U L | ||
| 50 | LUr R B | ||
| 51 | LUr F U | ||
| 52 | |||
| 53 | LFr U L | ||
| 54 | LFr R U | ||
| 55 | LFr F F | ||
| 56 | |||
| 57 | LDr U L | ||
| 58 | LDr R F | ||
| 59 | LDr F D | ||
| 60 | |||
| 61 | LBr U L | ||
| 62 | LBr R D | ||
| 63 | LBr F B | ||
| 64 | |||
| 65 | FUr U F | ||
| 66 | FUr R L | ||
| 67 | FUr F U | ||
| 68 | |||
| 69 | FRr U F | ||
| 70 | FRr R U | ||
| 71 | FRr F R | ||
| 72 | |||
| 73 | FDr U F | ||
| 74 | FDr R R | ||
| 75 | FDr F D | ||
| 76 | |||
| 77 | FLr U F | ||
| 78 | FLr R D | ||
| 79 | FLr F L | ||
| 80 | |||
| 81 | BUr U B | ||
| 82 | BUr R R | ||
| 83 | BUr F U | ||
| 84 | |||
| 85 | BRr U B | ||
| 86 | BRr R D | ||
| 87 | BRr F R | ||
| 88 | |||
| 89 | BDr U B | ||
| 90 | BDr R L | ||
| 91 | BDr F D | ||
| 92 | |||
| 93 | BLr U B | ||
| 94 | BLr R U | ||
| 95 | BLr F L | ||
