1 |
41ce784b
|
Leszek Koltunski
|
/*
|
2 |
|
|
* Herbert Kociemba
|
3 |
|
|
*
|
4 |
|
|
* BSD-licensed. See https://opensource.org/licenses/BSD-3-Clause
|
5 |
|
|
*/
|
6 |
358be403
|
Leszek Koltunski
|
|
7 |
b95ceafc
|
Leszek Koltunski
|
package org.distorted.solvers.cube3;
|
8 |
|
|
|
9 |
|
|
/**
|
10 |
|
|
* <pre>
|
11 |
|
|
* The names of the facelet positions of the cube
|
12 |
|
|
* |************|
|
13 |
|
|
* |*U1**U2**U3*|
|
14 |
|
|
* |************|
|
15 |
|
|
* |*U4**U5**U6*|
|
16 |
|
|
* |************|
|
17 |
|
|
* |*U7**U8**U9*|
|
18 |
|
|
* |************|
|
19 |
|
|
* ************|************|************|************|
|
20 |
|
|
* *L1**L2**L3*|*F1**F2**F3*|*R1**R2**F3*|*B1**B2**B3*|
|
21 |
|
|
* ************|************|************|************|
|
22 |
|
|
* *L4**L5**L6*|*F4**F5**F6*|*R4**R5**R6*|*B4**B5**B6*|
|
23 |
|
|
* ************|************|************|************|
|
24 |
|
|
* *L7**L8**L9*|*F7**F8**F9*|*R7**R8**R9*|*B7**B8**B9*|
|
25 |
|
|
* ************|************|************|************|
|
26 |
|
|
* |************|
|
27 |
|
|
* |*D1**D2**D3*|
|
28 |
|
|
* |************|
|
29 |
|
|
* |*D4**D5**D6*|
|
30 |
|
|
* |************|
|
31 |
|
|
* |*D7**D8**D9*|
|
32 |
|
|
* |************|
|
33 |
|
|
* </pre>
|
34 |
|
|
*
|
35 |
|
|
*A cube definition string "UBL..." means for example: In position U1 we have the U-color, in position U2 we have the
|
36 |
|
|
* B-color, in position U3 we have the L color etc. according to the order U1, U2, U3, U4, U5, U6, U7, U8, U9, R1, R2,
|
37 |
|
|
* R3, R4, R5, R6, R7, R8, R9, F1, F2, F3, F4, F5, F6, F7, F8, F9, D1, D2, D3, D4, D5, D6, D7, D8, D9, L1, L2, L3, L4,
|
38 |
|
|
* L5, L6, L7, L8, L9, B1, B2, B3, B4, B5, B6, B7, B8, B9 of the enum constants.
|
39 |
|
|
*/
|
40 |
|
|
|
41 |
358be403
|
Leszek Koltunski
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
42 |
|
|
|
43 |
dfae472b
|
Leszek Koltunski
|
class SolverFacelet
|
44 |
b95ceafc
|
Leszek Koltunski
|
{
|
45 |
|
|
public static int U1 = 0;
|
46 |
|
|
public static int U2 = 1;
|
47 |
|
|
public static int U3 = 2;
|
48 |
|
|
public static int U4 = 3;
|
49 |
|
|
public static int U5 = 4;
|
50 |
|
|
public static int U6 = 5;
|
51 |
|
|
public static int U7 = 6;
|
52 |
|
|
public static int U8 = 7;
|
53 |
|
|
public static int U9 = 8;
|
54 |
|
|
|
55 |
|
|
public static int R1 = 9;
|
56 |
|
|
public static int R2 = 10;
|
57 |
|
|
public static int R3 = 11;
|
58 |
|
|
public static int R4 = 12;
|
59 |
|
|
public static int R5 = 13;
|
60 |
|
|
public static int R6 = 14;
|
61 |
|
|
public static int R7 = 15;
|
62 |
|
|
public static int R8 = 16;
|
63 |
|
|
public static int R9 = 17;
|
64 |
|
|
|
65 |
|
|
public static int F1 = 18;
|
66 |
|
|
public static int F2 = 19;
|
67 |
|
|
public static int F3 = 20;
|
68 |
|
|
public static int F4 = 21;
|
69 |
|
|
public static int F5 = 22;
|
70 |
|
|
public static int F6 = 23;
|
71 |
|
|
public static int F7 = 24;
|
72 |
|
|
public static int F8 = 25;
|
73 |
|
|
public static int F9 = 26;
|
74 |
|
|
|
75 |
|
|
public static int D1 = 27;
|
76 |
|
|
public static int D2 = 28;
|
77 |
|
|
public static int D3 = 29;
|
78 |
|
|
public static int D4 = 30;
|
79 |
|
|
public static int D5 = 31;
|
80 |
|
|
public static int D6 = 32;
|
81 |
|
|
public static int D7 = 33;
|
82 |
|
|
public static int D8 = 34;
|
83 |
|
|
public static int D9 = 35;
|
84 |
|
|
|
85 |
|
|
public static int L1 = 36;
|
86 |
|
|
public static int L2 = 37;
|
87 |
|
|
public static int L3 = 38;
|
88 |
|
|
public static int L4 = 39;
|
89 |
|
|
public static int L5 = 40;
|
90 |
|
|
public static int L6 = 41;
|
91 |
|
|
public static int L7 = 42;
|
92 |
|
|
public static int L8 = 43;
|
93 |
|
|
public static int L9 = 44;
|
94 |
|
|
|
95 |
|
|
public static int B1 = 45;
|
96 |
|
|
public static int B2 = 46;
|
97 |
|
|
public static int B3 = 47;
|
98 |
|
|
public static int B4 = 48;
|
99 |
|
|
public static int B5 = 49;
|
100 |
|
|
public static int B6 = 50;
|
101 |
|
|
public static int B7 = 51;
|
102 |
|
|
public static int B8 = 52;
|
103 |
|
|
public static int B9 = 53;
|
104 |
|
|
}
|