Project

General

Profile

Download (4.75 KB) Statistics
| Branch: | Tag: | Revision:

magiccube / src / main / java / org / distorted / solvers / cube3 / SolverFacelet.java @ ac1900c3

1
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2008 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7
// it under the terms of the GNU General Public License as published by                          //
8
// the Free Software Foundation, either version 2 of the License, or                             //
9
// (at your option) any later version.                                                           //
10
//                                                                                               //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14
// GNU General Public License for more details.                                                  //
15
//                                                                                               //
16
// You should have received a copy of the GNU General Public License                             //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18
///////////////////////////////////////////////////////////////////////////////////////////////////
19

    
20
package org.distorted.solvers.cube3;
21

    
22
/**
23
 * <pre>
24
 * The names of the facelet positions of the cube
25
 *             |************|
26
 *             |*U1**U2**U3*|
27
 *             |************|
28
 *             |*U4**U5**U6*|
29
 *             |************|
30
 *             |*U7**U8**U9*|
31
 *             |************|
32
 * ************|************|************|************|
33
 * *L1**L2**L3*|*F1**F2**F3*|*R1**R2**F3*|*B1**B2**B3*|
34
 * ************|************|************|************|
35
 * *L4**L5**L6*|*F4**F5**F6*|*R4**R5**R6*|*B4**B5**B6*|
36
 * ************|************|************|************|
37
 * *L7**L8**L9*|*F7**F8**F9*|*R7**R8**R9*|*B7**B8**B9*|
38
 * ************|************|************|************|
39
 *             |************|
40
 *             |*D1**D2**D3*|
41
 *             |************|
42
 *             |*D4**D5**D6*|
43
 *             |************|
44
 *             |*D7**D8**D9*|
45
 *             |************|
46
 * </pre>
47
 * 
48
 *A cube definition string "UBL..." means for example: In position U1 we have the U-color, in position U2 we have the
49
 * 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,
50
 * 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,
51
 * L5, L6, L7, L8, L9, B1, B2, B3, B4, B5, B6, B7, B8, B9 of the enum constants.
52
 */
53

    
54
///////////////////////////////////////////////////////////////////////////////////////////////////
55

    
56
class SolverFacelet
57
  {
58
  public static int U1 = 0;
59
  public static int U2 = 1;
60
  public static int U3 = 2;
61
  public static int U4 = 3;
62
  public static int U5 = 4;
63
  public static int U6 = 5;
64
  public static int U7 = 6;
65
  public static int U8 = 7;
66
  public static int U9 = 8;
67

    
68
  public static int R1 = 9;
69
  public static int R2 = 10;
70
  public static int R3 = 11;
71
  public static int R4 = 12;
72
  public static int R5 = 13;
73
  public static int R6 = 14;
74
  public static int R7 = 15;
75
  public static int R8 = 16;
76
  public static int R9 = 17;
77

    
78
  public static int F1 = 18;
79
  public static int F2 = 19;
80
  public static int F3 = 20;
81
  public static int F4 = 21;
82
  public static int F5 = 22;
83
  public static int F6 = 23;
84
  public static int F7 = 24;
85
  public static int F8 = 25;
86
  public static int F9 = 26;
87

    
88
  public static int D1 = 27;
89
  public static int D2 = 28;
90
  public static int D3 = 29;
91
  public static int D4 = 30;
92
  public static int D5 = 31;
93
  public static int D6 = 32;
94
  public static int D7 = 33;
95
  public static int D8 = 34;
96
  public static int D9 = 35;
97

    
98
  public static int L1 = 36;
99
  public static int L2 = 37;
100
  public static int L3 = 38;
101
  public static int L4 = 39;
102
  public static int L5 = 40;
103
  public static int L6 = 41;
104
  public static int L7 = 42;
105
  public static int L8 = 43;
106
  public static int L9 = 44;
107

    
108
  public static int B1 = 45;
109
  public static int B2 = 46;
110
  public static int B3 = 47;
111
  public static int B4 = 48;
112
  public static int B5 = 49;
113
  public static int B6 = 50;
114
  public static int B7 = 51;
115
  public static int B8 = 52;
116
  public static int B9 = 53;
117
  }
(7-7/8)