Revision c6fe904b
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/main/ObjectType.java | ||
---|---|---|
40 | 40 |
CUBE_6 ( TwistyCuboid.class , new int[] {6,6,6} , 35, R.drawable.cube_6, true), |
41 | 41 |
CUBE_7 ( TwistyCuboid.class , new int[] {7,7,7} , 42, R.drawable.cube_7, true), |
42 | 42 |
BAN1_3 ( TwistyBandagedFused.class , new int[] {3,3,3} , 16, R.drawable.ban1_3, true), |
43 |
BAN2_3 ( TwistyBandaged2Bar.class , new int[] {3,3,3} , 16, R.drawable.ban2_3, true),
|
|
43 |
BAN2_3 ( TwistyBandaged2Bar.class , new int[] {3,3,3} , 20, R.drawable.ban2_3, true),
|
|
44 | 44 |
BAN3_3 ( TwistyBandaged3Plate.class, new int[] {3,3,3} , 16, R.drawable.ban3_3, true), |
45 |
BAN4_3 ( TwistyBandagedEvil.class , new int[] {3,3,3} , 16, R.drawable.ban4_3, true),
|
|
45 |
BAN4_3 ( TwistyBandagedBiCube.class, new int[] {3,3,3} , 22, R.drawable.ban4_3, true),
|
|
46 | 46 |
CU_323 ( TwistyCuboid.class , new int[] {3,2,3} , 15, R.drawable.cu_323, true), |
47 | 47 |
CU_232 ( TwistyCuboid.class , new int[] {2,3,2} , 16, R.drawable.cu_232, true), |
48 | 48 |
CU_343 ( TwistyCuboid.class , new int[] {3,4,3} , 23, R.drawable.cu_343, true), |
src/main/java/org/distorted/objectlib/objects/TwistyBandagedBiCube.java | ||
---|---|---|
1 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
2 |
// Copyright 2021 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.objectlib.objects; |
|
21 |
|
|
22 |
import java.io.InputStream; |
|
23 |
|
|
24 |
import org.distorted.library.type.Static3D; |
|
25 |
import org.distorted.library.type.Static4D; |
|
26 |
|
|
27 |
import org.distorted.objectlib.main.ObjectType; |
|
28 |
import org.distorted.objectlib.scrambling.ScrambleState; |
|
29 |
|
|
30 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
31 |
|
|
32 |
public class TwistyBandagedBiCube extends TwistyBandagedAbstract |
|
33 |
{ |
|
34 |
public TwistyBandagedBiCube(int[] numL, int meshState, Static4D quat, Static3D move, float scale, InputStream stream) |
|
35 |
{ |
|
36 |
super(numL, meshState, quat, move, scale, stream); |
|
37 |
} |
|
38 |
|
|
39 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
40 |
|
|
41 |
public ScrambleState[] getScrambleStates() |
|
42 |
{ |
|
43 |
if( mStates==null ) |
|
44 |
{ |
|
45 |
mStates = new ScrambleState[] |
|
46 |
{ |
|
47 |
new ScrambleState( new int[][] {{2, 1, 1,2,-1, 2} , {2, 2,142,2,-1, 28} , {0, 1,114} }), //0 |
|
48 |
new ScrambleState( new int[][] {{2, 2, 2} , {2,-1,143} , {} }), |
|
49 |
new ScrambleState( new int[][] {{2, 2, 1} , {} , {0, 1, 3,0, 2, 47} }), |
|
50 |
new ScrambleState( new int[][] {{2, 1, 4} , {2, 1,132,2,-1,131} , {0, 1, 47,0,-1, 2} }), |
|
51 |
new ScrambleState( new int[][] {{2,-1, 3} , {2, 1, 5,2,-1, 6} , {} }), |
|
52 |
new ScrambleState( new int[][] {{} , {2, 2, 6,2,-1, 4} , {0, 1, 51} }), |
|
53 |
new ScrambleState( new int[][] {{} , {2, 1, 4,2, 2, 5} , {2, 2, 7,2,-1, 80} }), |
|
54 |
new ScrambleState( new int[][] {{2, 2, 8} , {} , {2, 1, 80,2, 2, 6} }), |
|
55 |
new ScrambleState( new int[][] {{2, 2, 7} , {} , {0,-1, 9} }), |
|
56 |
new ScrambleState( new int[][] {{2, 1, 10,2, 2, 11,2,-1, 12}, {} , {0, 1, 8} }), |
|
57 |
new ScrambleState( new int[][] {{2, 1, 11,2, 2, 12,2,-1, 9}, {} , {0,-1,118} }), //10 |
|
58 |
new ScrambleState( new int[][] {{2, 1, 12,2, 2, 9,2,-1, 10}, {} , {2, 1, 77} }), |
|
59 |
new ScrambleState( new int[][] {{2, 1, 9,2, 2, 10,2,-1, 11}, {} , {2, 1, 13,2, 2,143} }), |
|
60 |
new ScrambleState( new int[][] {{2, 1, 14,2, 2, 15,2,-1, 16}, {2, 1, 57,2,-1, 58} , {2, 1,143,2,-1, 12} }), |
|
61 |
new ScrambleState( new int[][] {{2, 1, 15,2, 2, 16,2,-1, 13}, {} , {2, 1, 41} }), |
|
62 |
new ScrambleState( new int[][] {{2, 1, 16,2, 2, 13,2,-1, 14}, {} , {0, 1, 82} }), |
|
63 |
new ScrambleState( new int[][] {{2, 1, 13,2, 2, 14,2,-1, 15}, {2, 1, 17,2,-1, 18} , {0, 1,111,0,-1,115} }), |
|
64 |
new ScrambleState( new int[][] {{} , {2, 2, 18,2,-1, 16} , {0,-1,139} }), |
|
65 |
new ScrambleState( new int[][] {{2, 1, 19,2,-1, 20} , {2, 1, 16,2, 2, 17} , {2, 1,142} }), |
|
66 |
new ScrambleState( new int[][] {{2, 2, 20,2,-1, 18} , {} , {2, 1, 39,2, 2,140} }), |
|
67 |
new ScrambleState( new int[][] {{2, 1, 18,2, 2, 19} , {2, 1, 21} , {} }), //20 |
|
68 |
new ScrambleState( new int[][] {{} , {2,-1, 20} , {0,-1, 22} }), |
|
69 |
new ScrambleState( new int[][] {{2, 2, 23,2,-1, 24} , {} , {0, 1, 21} }), |
|
70 |
new ScrambleState( new int[][] {{2, 1, 24,2, 2, 22} , {} , {2, 1, 92} }), |
|
71 |
new ScrambleState( new int[][] {{2, 1, 22,2,-1, 23} , {} , {0, 1, 25} }), |
|
72 |
new ScrambleState( new int[][] {{2, 1, 26,2, 2, 27} , {} , {0,-1, 24} }), |
|
73 |
new ScrambleState( new int[][] {{2, 1, 27,2,-1, 25} , {2, 1, 74} , {} }), |
|
74 |
new ScrambleState( new int[][] {{2, 2, 25,2,-1, 26} , {} , {2, 1, 28,2, 2,124} }), |
|
75 |
new ScrambleState( new int[][] {{2, 1, 29,2, 2, 30,2,-1, 31}, {2,-1,142} , {2, 1,124,2,-1, 27} }), |
|
76 |
new ScrambleState( new int[][] {{2, 1, 30,2, 2, 31,2,-1, 28}, {} , {2, 1,141} }), |
|
77 |
new ScrambleState( new int[][] {{2, 1, 31,2, 2, 28,2,-1, 29}, {} , {0, 1,130} }), //30 |
|
78 |
new ScrambleState( new int[][] {{2, 1, 28,2, 2, 29,2,-1, 30}, {2, 1, 32,2,-1, 33} , {0, 1, 89,0,-1, 90} }), |
|
79 |
new ScrambleState( new int[][] {{} , {2, 2, 33,2,-1, 31} , {0,-1,137} }), |
|
80 |
new ScrambleState( new int[][] {{2, 1, 34} , {2, 1, 31,2, 2, 32} , {} }), |
|
81 |
new ScrambleState( new int[][] {{2,-1, 33} , {} , {2, 1, 35} }), |
|
82 |
new ScrambleState( new int[][] {{} , {2,-1, 36} , {2,-1, 34} }), |
|
83 |
new ScrambleState( new int[][] {{} , {2, 1, 35} , {2,-1, 37} }), |
|
84 |
new ScrambleState( new int[][] {{} , {2, 1, 38,2, 2, 93} , {2, 1, 36} }), |
|
85 |
new ScrambleState( new int[][] {{2, 1, 39} , {2, 1, 93,2,-1, 37} , {} }), |
|
86 |
new ScrambleState( new int[][] {{2,-1, 38} , {2, 1, 40,2,-1, 64} , {2, 1,140,2,-1, 19} }), |
|
87 |
new ScrambleState( new int[][] {{2, 1, 41,2,-1, 42} , {2, 2, 64,2,-1, 39} , {} }), //40 |
|
88 |
new ScrambleState( new int[][] {{2, 2, 42,2,-1, 40} , {} , {2,-1, 14} }), |
|
89 |
new ScrambleState( new int[][] {{2, 1, 40,2, 2, 41} , {} , {0, 1, 43,0, 2,128} }), |
|
90 |
new ScrambleState( new int[][] {{2, 1, 44,2,-1, 45} , {2, 1,114,2, 2,113,2,-1, 86}, {0, 1,128,0,-1, 42} }), |
|
91 |
new ScrambleState( new int[][] {{2, 2, 45,2,-1, 43} , {2, 1, 48,2,-1,108} , {2,-1, 81} }), |
|
92 |
new ScrambleState( new int[][] {{2, 1, 43,2, 2, 44} , {} , {0, 1, 46} }), |
|
93 |
new ScrambleState( new int[][] {{} , {2, 1, 47} , {0,-1, 45} }), |
|
94 |
new ScrambleState( new int[][] {{} , {2,-1, 46} , {0, 2, 2,0,-1, 3} }), |
|
95 |
new ScrambleState( new int[][] {{2,-1, 49} , {2, 2,108,2,-1, 44} , {} }), |
|
96 |
new ScrambleState( new int[][] {{2, 1, 48} , {} , {0, 1, 50} }), |
|
97 |
new ScrambleState( new int[][] {{} , {2, 1, 51,2, 2, 52} , {0,-1, 49} }), //50 |
|
98 |
new ScrambleState( new int[][] {{} , {2, 1, 52,2,-1, 50} , {0,-1, 5} }), |
|
99 |
new ScrambleState( new int[][] {{} , {2, 2, 50,2,-1, 51} , {2,-1, 53} }), |
|
100 |
new ScrambleState( new int[][] {{} , {2, 1, 54,2, 2, 55} , {2, 1, 52} }), |
|
101 |
new ScrambleState( new int[][] {{} , {2, 1, 55,2,-1, 53} , {0,-1,104} }), |
|
102 |
new ScrambleState( new int[][] {{} , {2, 2, 53,2,-1, 54} , {0, 2, 56,0,-1, 65} }), |
|
103 |
new ScrambleState( new int[][] {{2, 1, 57} , {} , {0, 1, 65,0, 2, 55} }), |
|
104 |
new ScrambleState( new int[][] {{2,-1, 56} , {2, 2, 58,2,-1, 13} , {} }), |
|
105 |
new ScrambleState( new int[][] {{} , {2, 1, 13,2, 2, 57} , {2,-1, 59} }), |
|
106 |
new ScrambleState( new int[][] {{2, 1, 60} , {} , {2, 1, 58} }), |
|
107 |
new ScrambleState( new int[][] {{2,-1, 59} , {} , {2, 1, 61} }), //60 |
|
108 |
new ScrambleState( new int[][] {{2,-1, 62} , {} , {2,-1, 60} }), |
|
109 |
new ScrambleState( new int[][] {{2, 1, 61} , {2,-1, 63} , {} }), |
|
110 |
new ScrambleState( new int[][] {{} , {2, 1, 62} , {2, 1, 64} }), |
|
111 |
new ScrambleState( new int[][] {{} , {2, 1, 39,2, 2, 40} , {2,-1, 63} }), |
|
112 |
new ScrambleState( new int[][] {{2, 1, 66,2,-1, 67} , {2, 1, 78,2, 2, 79,2,-1, 80}, {0, 1, 55,0,-1, 56} }), |
|
113 |
new ScrambleState( new int[][] {{2, 2, 67,2,-1, 65} , {2,-1,107} , {} }), |
|
114 |
new ScrambleState( new int[][] {{2, 1, 65,2, 2, 66} , {} , {0, 1, 68} }), |
|
115 |
new ScrambleState( new int[][] {{} , {2, 1, 69} , {0,-1, 67} }), |
|
116 |
new ScrambleState( new int[][] {{} , {2,-1, 68} , {0,-1, 70} }), |
|
117 |
new ScrambleState( new int[][] {{} , {2,-1, 71} , {0, 1, 69} }), //70 |
|
118 |
new ScrambleState( new int[][] {{2,-1, 72} , {2, 1, 70} , {} }), |
|
119 |
new ScrambleState( new int[][] {{2, 1, 71} , {} , {0,-1, 73} }), |
|
120 |
new ScrambleState( new int[][] {{2, 1, 74,2, 2, 75} , {} , {0, 1, 72} }), |
|
121 |
new ScrambleState( new int[][] {{2, 1, 75,2,-1, 73} , {2,-1, 26} , {0, 1, 83,0,-1,138} }), |
|
122 |
new ScrambleState( new int[][] {{2, 2, 73,2,-1, 74} , {2, 1, 76,2,-1, 77} , {} }), |
|
123 |
new ScrambleState( new int[][] {{} , {2, 2, 77,2,-1, 75} , {0, 1, 78} }), |
|
124 |
new ScrambleState( new int[][] {{} , {2, 1, 75,2, 2, 76} , {2,-1, 11} }), |
|
125 |
new ScrambleState( new int[][] {{} , {2, 1, 79,2, 2, 80,2,-1, 65}, {0,-1, 76} }), |
|
126 |
new ScrambleState( new int[][] {{} , {2, 1, 80,2, 2, 65,2,-1, 78}, {2,-1,110} }), |
|
127 |
new ScrambleState( new int[][] {{2, 1, 81,2,-1, 82} , {2, 1, 65,2, 2, 78,2,-1, 79}, {2, 1, 6,2,-1, 7} }), //80 |
|
128 |
new ScrambleState( new int[][] {{2, 2, 82,2,-1, 80} , {} , {2, 1, 44} }), |
|
129 |
new ScrambleState( new int[][] {{2, 1, 80,2, 2, 81} , {2, 1, 83,2,-1, 84} , {0,-1, 15} }), |
|
130 |
new ScrambleState( new int[][] {{} , {2, 2, 84,2,-1, 82} , {0, 2,138,0,-1, 74} }), |
|
131 |
new ScrambleState( new int[][] {{2, 1, 85} , {2, 1, 82,2, 2, 83} , {} }), |
|
132 |
new ScrambleState( new int[][] {{2,-1, 84} , {} , {2, 1, 86,2, 2,119} }), |
|
133 |
new ScrambleState( new int[][] {{2, 1, 87,2,-1, 88} , {2, 1, 43,2, 2,114,2,-1,113}, {2, 1,119,2,-1, 85} }), |
|
134 |
new ScrambleState( new int[][] {{2, 2, 88,2,-1, 86} , {} , {2, 1, 94} }), |
|
135 |
new ScrambleState( new int[][] {{2, 1, 86,2, 2, 87} , {2, 1, 89} , {} }), |
|
136 |
new ScrambleState( new int[][] {{} , {2,-1, 88} , {0, 2, 90,0,-1, 31} }), |
|
137 |
new ScrambleState( new int[][] {{2, 1, 91,2, 2, 92} , {} , {0, 1, 31,0, 2, 89} }), //90 |
|
138 |
new ScrambleState( new int[][] {{2, 1, 92,2,-1, 90} , {} , {0, 1, 93} }), |
|
139 |
new ScrambleState( new int[][] {{2, 2, 90,2,-1, 91} , {} , {2,-1, 23} }), |
|
140 |
new ScrambleState( new int[][] {{} , {2, 2, 37,2,-1, 38} , {0,-1, 91} }), |
|
141 |
new ScrambleState( new int[][] {{} , {2,-1, 95} , {2,-1, 87} }), |
|
142 |
new ScrambleState( new int[][] {{} , {2, 1, 94} , {2,-1, 96} }), |
|
143 |
new ScrambleState( new int[][] {{} , {2, 1, 97} , {2, 1, 95} }), |
|
144 |
new ScrambleState( new int[][] {{2, 1, 98} , {2,-1, 96} , {} }), |
|
145 |
new ScrambleState( new int[][] {{2,-1, 97} , {} , {2,-1, 99} }), |
|
146 |
new ScrambleState( new int[][] {{2, 2,100,2,-1,101} , {} , {2, 1, 98} }), |
|
147 |
new ScrambleState( new int[][] {{2, 1,101,2, 2, 99} , {2, 1,111,2,-1,112} , {} }), //100 |
|
148 |
new ScrambleState( new int[][] {{2, 1, 99,2,-1,100} , {2, 1,102} , {2, 1,108,2,-1,109} }), |
|
149 |
new ScrambleState( new int[][] {{2, 1,103,2,-1,104} , {2,-1,101} , {} }), |
|
150 |
new ScrambleState( new int[][] {{2, 2,104,2,-1,102} , {} , {2,-1,105} }), |
|
151 |
new ScrambleState( new int[][] {{2, 1,102,2, 2,103} , {} , {0, 1, 54} }), |
|
152 |
new ScrambleState( new int[][] {{2,-1,106} , {} , {2, 1,103} }), |
|
153 |
new ScrambleState( new int[][] {{2, 1,105} , {} , {2, 1,107} }), |
|
154 |
new ScrambleState( new int[][] {{} , {2, 1, 66} , {2,-1,106} }), |
|
155 |
new ScrambleState( new int[][] {{} , {2, 1, 44,2, 2, 48} , {2, 2,109,2,-1,101} }), |
|
156 |
new ScrambleState( new int[][] {{2,-1,110} , {} , {2, 1,101,2, 2,108} }), |
|
157 |
new ScrambleState( new int[][] {{2, 1,109} , {} , {2, 1, 79} }), //110 |
|
158 |
new ScrambleState( new int[][] {{} , {2, 2,112,2,-1,100} , {0, 2,115,0,-1, 16} }), |
|
159 |
new ScrambleState( new int[][] {{} , {2, 1,100,2, 2,111} , {2, 1,113} }), |
|
160 |
new ScrambleState( new int[][] {{} , {2, 1, 86,2, 2, 43,2,-1,114}, {2,-1,112} }), |
|
161 |
new ScrambleState( new int[][] {{} , {2, 1,113,2, 2, 86,2,-1, 43}, {0,-1, 0} }), |
|
162 |
new ScrambleState( new int[][] {{2, 2,116} , {} , {0, 1, 16,0, 2,111} }), |
|
163 |
new ScrambleState( new int[][] {{2, 2,115} , {} , {2,-1,117} }), |
|
164 |
new ScrambleState( new int[][] {{2, 1,118} , {} , {2, 1,116} }), |
|
165 |
new ScrambleState( new int[][] {{2,-1,117} , {} , {0, 1, 10} }), |
|
166 |
new ScrambleState( new int[][] {{} , {2, 1,120,2, 2,121,2,-1,122}, {2, 2, 85,2,-1, 86} }), |
|
167 |
new ScrambleState( new int[][] {{} , {2, 1,121,2, 2,122,2,-1,119}, {2,-1,129} }), //120 |
|
168 |
new ScrambleState( new int[][] {{} , {2, 1,122,2, 2,119,2,-1,120}, {0, 1,125} }), |
|
169 |
new ScrambleState( new int[][] {{} , {2, 1,119,2, 2,120,2,-1,121}, {0,-1,123} }), |
|
170 |
new ScrambleState( new int[][] {{} , {2, 2,124} , {0, 1,122} }), |
|
171 |
new ScrambleState( new int[][] {{} , {2, 2,123} , {2, 2, 27,2,-1, 28} }), |
|
172 |
new ScrambleState( new int[][] {{} , {2, 1,126} , {0,-1,121} }), |
|
173 |
new ScrambleState( new int[][] {{} , {2,-1,125} , {2,-1,127} }), |
|
174 |
new ScrambleState( new int[][] {{} , {2, 2,128} , {2, 1,126} }), |
|
175 |
new ScrambleState( new int[][] {{} , {2, 2,127} , {0, 2, 42,0,-1, 43} }), |
|
176 |
new ScrambleState( new int[][] {{2, 2,130,2,-1,131} , {} , {2, 1,120} }), |
|
177 |
new ScrambleState( new int[][] {{2, 1,131,2, 2,129} , {} , {0,-1, 30} }), //130 |
|
178 |
new ScrambleState( new int[][] {{2, 1,129,2,-1,130} , {2, 1, 3,2, 2,132} , {} }), |
|
179 |
new ScrambleState( new int[][] {{} , {2, 2,131,2,-1, 3} , {0,-1,133} }), |
|
180 |
new ScrambleState( new int[][] {{} , {2,-1,134} , {0, 1,132} }), |
|
181 |
new ScrambleState( new int[][] {{2,-1,135} , {2, 1,133} , {} }), |
|
182 |
new ScrambleState( new int[][] {{2, 1,134} , {} , {0,-1,136} }), |
|
183 |
new ScrambleState( new int[][] {{2, 1,137} , {} , {0, 1,135} }), |
|
184 |
new ScrambleState( new int[][] {{2,-1,136} , {} , {0, 1, 32} }), |
|
185 |
new ScrambleState( new int[][] {{2, 1,139} , {} , {0, 1, 74,0, 2, 83} }), |
|
186 |
new ScrambleState( new int[][] {{2,-1,138} , {} , {0, 1, 17} }), |
|
187 |
new ScrambleState( new int[][] {{} , {2, 1,141} , {2, 2, 19,2,-1, 39} }), //140 |
|
188 |
new ScrambleState( new int[][] {{} , {2,-1,140} , {2,-1, 29} }), |
|
189 |
new ScrambleState( new int[][] {{} , {2, 1, 28} , {2,-1, 18} }), |
|
190 |
new ScrambleState( new int[][] {{} , {2, 1, 1} , {2, 2, 12,2,-1, 13} }) |
|
191 |
}; |
|
192 |
} |
|
193 |
|
|
194 |
return mStates; |
|
195 |
} |
|
196 |
|
|
197 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
198 |
|
|
199 |
float[][] getPositions() |
|
200 |
{ |
|
201 |
if( POSITIONS==null ) |
|
202 |
{ |
|
203 |
POSITIONS = new float[][] |
|
204 |
{ |
|
205 |
{ 1.0f, 1.0f, -1.0f}, |
|
206 |
{-1.0f, -1.0f, 0.0f, -1.0f, 0.0f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f, 0.0f, 0.0f}, |
|
207 |
{-1.0f, 1.0f, -1.0f, 0.0f, 1.0f, -1.0f}, |
|
208 |
{-1.0f, 0.0f, -1.0f, 0.0f, 0.0f, -1.0f}, |
|
209 |
{-1.0f, -1.0f, -1.0f, 0.0f, -1.0f, -1.0f}, |
|
210 |
{-1.0f, 1.0f, 0.0f, -1.0f, 1.0f, 1.0f}, |
|
211 |
{ 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f}, |
|
212 |
{ 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f}, |
|
213 |
{-1.0f, -1.0f, 1.0f, -1.0f, 0.0f, 1.0f}, |
|
214 |
{ 0.0f, -1.0f, 1.0f, 0.0f, 0.0f, 1.0f}, |
|
215 |
{ 1.0f, -1.0f, 1.0f, 1.0f, 0.0f, 1.0f}, |
|
216 |
{ 1.0f, -1.0f, 0.0f, 1.0f, 0.0f, 0.0f}, |
|
217 |
{ 1.0f, -1.0f, -1.0f, 1.0f, 0.0f, -1.0f} |
|
218 |
}; |
|
219 |
} |
|
220 |
return POSITIONS; |
|
221 |
} |
|
222 |
|
|
223 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
224 |
|
|
225 |
int[] getQuatIndices() |
|
226 |
{ |
|
227 |
if( QUAT_INDICES==null ) QUAT_INDICES = new int[] { 0, 1, 0, 0, 0, 2, 2, 2, 3, 3, 3, 3, 3 }; |
|
228 |
return QUAT_INDICES; |
|
229 |
} |
|
230 |
|
|
231 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
232 |
// PUBLIC API |
|
233 |
|
|
234 |
public ObjectType intGetObjectType(int[] numLayers) |
|
235 |
{ |
|
236 |
return ObjectType.BAN4_3; |
|
237 |
} |
|
238 |
|
|
239 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
240 |
|
|
241 |
public String getObjectName() |
|
242 |
{ |
|
243 |
return "Bandaged Cube B"; |
|
244 |
} |
|
245 |
|
|
246 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
247 |
|
|
248 |
public String getInventor() |
|
249 |
{ |
|
250 |
return "Uwe Meffert"; |
|
251 |
} |
|
252 |
|
|
253 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
254 |
|
|
255 |
public int getYearOfInvention() |
|
256 |
{ |
|
257 |
return 1999; |
|
258 |
} |
|
259 |
|
|
260 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
261 |
|
|
262 |
public int getComplexity() |
|
263 |
{ |
|
264 |
return 3; |
|
265 |
} |
|
266 |
|
|
267 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
268 |
|
|
269 |
public String[][] getTutorials() |
|
270 |
{ |
|
271 |
return new String[][]{ |
|
272 |
{"gb","AnpdIKICBpM","Trying to Solve a Bandaged Cube","RedKB"}, |
|
273 |
{"es","cUyo5fycrvI","Tutorial Bandaged Cube en español","Rafa Garcia Benacazon"}, |
|
274 |
{"ru","-MTzeEJptsg","Как собрать bandaged Cube B","стратегия знаний"}, |
|
275 |
{"fr","3rsfIJ3roT0","Tutoriel: résolution du Bicube","Skieur Cubb"}, |
|
276 |
{"de","sqWVRwkXX9w","Bandaged Cube - Tutorial","GerCubing"}, |
|
277 |
{"pl","XcHzTvVR6Po","Bandaged 3x3 v.B cube","MrUK"}, |
|
278 |
{"kr","1gsoijF_5q0","BiCube Tutorial (해법)","듀나메스 큐브 해법연구소"}, |
|
279 |
}; |
|
280 |
} |
|
281 |
} |
src/main/java/org/distorted/objectlib/objects/TwistyBandagedEvil.java | ||
---|---|---|
1 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
2 |
// Copyright 2021 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.objectlib.objects; |
|
21 |
|
|
22 |
import java.io.InputStream; |
|
23 |
|
|
24 |
import org.distorted.library.type.Static3D; |
|
25 |
import org.distorted.library.type.Static4D; |
|
26 |
|
|
27 |
import org.distorted.objectlib.main.ObjectType; |
|
28 |
import org.distorted.objectlib.scrambling.ScrambleState; |
|
29 |
|
|
30 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
31 |
|
|
32 |
public class TwistyBandagedEvil extends TwistyBandagedAbstract |
|
33 |
{ |
|
34 |
public TwistyBandagedEvil(int[] numL, int meshState, Static4D quat, Static3D move, float scale, InputStream stream) |
|
35 |
{ |
|
36 |
super(numL, meshState, quat, move, scale, stream); |
|
37 |
} |
|
38 |
|
|
39 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
40 |
|
|
41 |
public ScrambleState[] getScrambleStates() |
|
42 |
{ |
|
43 |
if( mStates==null ) |
|
44 |
{ |
|
45 |
mStates = new ScrambleState[] |
|
46 |
{ |
|
47 |
new ScrambleState( new int[][] {{2, 1, 1,2,-1, 2} , {2, 2,142,2,-1, 28} , {0, 1,114} }), //0 |
|
48 |
new ScrambleState( new int[][] {{2, 2, 2} , {2,-1,143} , {} }), |
|
49 |
new ScrambleState( new int[][] {{2, 2, 1} , {} , {0, 1, 3,0, 2, 47} }), |
|
50 |
new ScrambleState( new int[][] {{2, 1, 4} , {2, 1,132,2,-1,131} , {0, 1, 47,0,-1, 2} }), |
|
51 |
new ScrambleState( new int[][] {{2,-1, 3} , {2, 1, 5,2,-1, 6} , {} }), |
|
52 |
new ScrambleState( new int[][] {{} , {2, 2, 6,2,-1, 4} , {0, 1, 51} }), |
|
53 |
new ScrambleState( new int[][] {{} , {2, 1, 4,2, 2, 5} , {2, 2, 7,2,-1, 80} }), |
|
54 |
new ScrambleState( new int[][] {{2, 2, 8} , {} , {2, 1, 80,2, 2, 6} }), |
|
55 |
new ScrambleState( new int[][] {{2, 2, 7} , {} , {0,-1, 9} }), |
|
56 |
new ScrambleState( new int[][] {{2, 1, 10,2, 2, 11,2,-1, 12}, {} , {0, 1, 8} }), |
|
57 |
new ScrambleState( new int[][] {{2, 1, 11,2, 2, 12,2,-1, 9}, {} , {0,-1,118} }), //10 |
|
58 |
new ScrambleState( new int[][] {{2, 1, 12,2, 2, 9,2,-1, 10}, {} , {2, 1, 77} }), |
|
59 |
new ScrambleState( new int[][] {{2, 1, 9,2, 2, 10,2,-1, 11}, {} , {2, 1, 13,2, 2,143} }), |
|
60 |
new ScrambleState( new int[][] {{2, 1, 14,2, 2, 15,2,-1, 16}, {2, 1, 57,2,-1, 58} , {2, 1,143,2,-1, 12} }), |
|
61 |
new ScrambleState( new int[][] {{2, 1, 15,2, 2, 16,2,-1, 13}, {} , {2, 1, 41} }), |
|
62 |
new ScrambleState( new int[][] {{2, 1, 16,2, 2, 13,2,-1, 14}, {} , {0, 1, 82} }), |
|
63 |
new ScrambleState( new int[][] {{2, 1, 13,2, 2, 14,2,-1, 15}, {2, 1, 17,2,-1, 18} , {0, 1,111,0,-1,115} }), |
|
64 |
new ScrambleState( new int[][] {{} , {2, 2, 18,2,-1, 16} , {0,-1,139} }), |
|
65 |
new ScrambleState( new int[][] {{2, 1, 19,2,-1, 20} , {2, 1, 16,2, 2, 17} , {2, 1,142} }), |
|
66 |
new ScrambleState( new int[][] {{2, 2, 20,2,-1, 18} , {} , {2, 1, 39,2, 2,140} }), |
|
67 |
new ScrambleState( new int[][] {{2, 1, 18,2, 2, 19} , {2, 1, 21} , {} }), //20 |
|
68 |
new ScrambleState( new int[][] {{} , {2,-1, 20} , {0,-1, 22} }), |
|
69 |
new ScrambleState( new int[][] {{2, 2, 23,2,-1, 24} , {} , {0, 1, 21} }), |
|
70 |
new ScrambleState( new int[][] {{2, 1, 24,2, 2, 22} , {} , {2, 1, 92} }), |
|
71 |
new ScrambleState( new int[][] {{2, 1, 22,2,-1, 23} , {} , {0, 1, 25} }), |
|
72 |
new ScrambleState( new int[][] {{2, 1, 26,2, 2, 27} , {} , {0,-1, 24} }), |
|
73 |
new ScrambleState( new int[][] {{2, 1, 27,2,-1, 25} , {2, 1, 74} , {} }), |
|
74 |
new ScrambleState( new int[][] {{2, 2, 25,2,-1, 26} , {} , {2, 1, 28,2, 2,124} }), |
|
75 |
new ScrambleState( new int[][] {{2, 1, 29,2, 2, 30,2,-1, 31}, {2,-1,142} , {2, 1,124,2,-1, 27} }), |
|
76 |
new ScrambleState( new int[][] {{2, 1, 30,2, 2, 31,2,-1, 28}, {} , {2, 1,141} }), |
|
77 |
new ScrambleState( new int[][] {{2, 1, 31,2, 2, 28,2,-1, 29}, {} , {0, 1,130} }), //30 |
|
78 |
new ScrambleState( new int[][] {{2, 1, 28,2, 2, 29,2,-1, 30}, {2, 1, 32,2,-1, 33} , {0, 1, 89,0,-1, 90} }), |
|
79 |
new ScrambleState( new int[][] {{} , {2, 2, 33,2,-1, 31} , {0,-1,137} }), |
|
80 |
new ScrambleState( new int[][] {{2, 1, 34} , {2, 1, 31,2, 2, 32} , {} }), |
|
81 |
new ScrambleState( new int[][] {{2,-1, 33} , {} , {2, 1, 35} }), |
|
82 |
new ScrambleState( new int[][] {{} , {2,-1, 36} , {2,-1, 34} }), |
|
83 |
new ScrambleState( new int[][] {{} , {2, 1, 35} , {2,-1, 37} }), |
|
84 |
new ScrambleState( new int[][] {{} , {2, 1, 38,2, 2, 93} , {2, 1, 36} }), |
|
85 |
new ScrambleState( new int[][] {{2, 1, 39} , {2, 1, 93,2,-1, 37} , {} }), |
|
86 |
new ScrambleState( new int[][] {{2,-1, 38} , {2, 1, 40,2,-1, 64} , {2, 1,140,2,-1, 19} }), |
|
87 |
new ScrambleState( new int[][] {{2, 1, 41,2,-1, 42} , {2, 2, 64,2,-1, 39} , {} }), //40 |
|
88 |
new ScrambleState( new int[][] {{2, 2, 42,2,-1, 40} , {} , {2,-1, 14} }), |
|
89 |
new ScrambleState( new int[][] {{2, 1, 40,2, 2, 41} , {} , {0, 1, 43,0, 2,128} }), |
|
90 |
new ScrambleState( new int[][] {{2, 1, 44,2,-1, 45} , {2, 1,114,2, 2,113,2,-1, 86}, {0, 1,128,0,-1, 42} }), |
|
91 |
new ScrambleState( new int[][] {{2, 2, 45,2,-1, 43} , {2, 1, 48,2,-1,108} , {2,-1, 81} }), |
|
92 |
new ScrambleState( new int[][] {{2, 1, 43,2, 2, 44} , {} , {0, 1, 46} }), |
|
93 |
new ScrambleState( new int[][] {{} , {2, 1, 47} , {0,-1, 45} }), |
|
94 |
new ScrambleState( new int[][] {{} , {2,-1, 46} , {0, 2, 2,0,-1, 3} }), |
|
95 |
new ScrambleState( new int[][] {{2,-1, 49} , {2, 2,108,2,-1, 44} , {} }), |
|
96 |
new ScrambleState( new int[][] {{2, 1, 48} , {} , {0, 1, 50} }), |
|
97 |
new ScrambleState( new int[][] {{} , {2, 1, 51,2, 2, 52} , {0,-1, 49} }), //50 |
|
98 |
new ScrambleState( new int[][] {{} , {2, 1, 52,2,-1, 50} , {0,-1, 5} }), |
|
99 |
new ScrambleState( new int[][] {{} , {2, 2, 50,2,-1, 51} , {2,-1, 53} }), |
|
100 |
new ScrambleState( new int[][] {{} , {2, 1, 54,2, 2, 55} , {2, 1, 52} }), |
|
101 |
new ScrambleState( new int[][] {{} , {2, 1, 55,2,-1, 53} , {0,-1,104} }), |
|
102 |
new ScrambleState( new int[][] {{} , {2, 2, 53,2,-1, 54} , {0, 2, 56,0,-1, 65} }), |
|
103 |
new ScrambleState( new int[][] {{2, 1, 57} , {} , {0, 1, 65,0, 2, 55} }), |
|
104 |
new ScrambleState( new int[][] {{2,-1, 56} , {2, 2, 58,2,-1, 13} , {} }), |
|
105 |
new ScrambleState( new int[][] {{} , {2, 1, 13,2, 2, 57} , {2,-1, 59} }), |
|
106 |
new ScrambleState( new int[][] {{2, 1, 60} , {} , {2, 1, 58} }), |
|
107 |
new ScrambleState( new int[][] {{2,-1, 59} , {} , {2, 1, 61} }), //60 |
|
108 |
new ScrambleState( new int[][] {{2,-1, 62} , {} , {2,-1, 60} }), |
|
109 |
new ScrambleState( new int[][] {{2, 1, 61} , {2,-1, 63} , {} }), |
|
110 |
new ScrambleState( new int[][] {{} , {2, 1, 62} , {2, 1, 64} }), |
|
111 |
new ScrambleState( new int[][] {{} , {2, 1, 39,2, 2, 40} , {2,-1, 63} }), |
|
112 |
new ScrambleState( new int[][] {{2, 1, 66,2,-1, 67} , {2, 1, 78,2, 2, 79,2,-1, 80}, {0, 1, 55,0,-1, 56} }), |
|
113 |
new ScrambleState( new int[][] {{2, 2, 67,2,-1, 65} , {2,-1,107} , {} }), |
|
114 |
new ScrambleState( new int[][] {{2, 1, 65,2, 2, 66} , {} , {0, 1, 68} }), |
|
115 |
new ScrambleState( new int[][] {{} , {2, 1, 69} , {0,-1, 67} }), |
|
116 |
new ScrambleState( new int[][] {{} , {2,-1, 68} , {0,-1, 70} }), |
|
117 |
new ScrambleState( new int[][] {{} , {2,-1, 71} , {0, 1, 69} }), //70 |
|
118 |
new ScrambleState( new int[][] {{2,-1, 72} , {2, 1, 70} , {} }), |
|
119 |
new ScrambleState( new int[][] {{2, 1, 71} , {} , {0,-1, 73} }), |
|
120 |
new ScrambleState( new int[][] {{2, 1, 74,2, 2, 75} , {} , {0, 1, 72} }), |
|
121 |
new ScrambleState( new int[][] {{2, 1, 75,2,-1, 73} , {2,-1, 26} , {0, 1, 83,0,-1,138} }), |
|
122 |
new ScrambleState( new int[][] {{2, 2, 73,2,-1, 74} , {2, 1, 76,2,-1, 77} , {} }), |
|
123 |
new ScrambleState( new int[][] {{} , {2, 2, 77,2,-1, 75} , {0, 1, 78} }), |
|
124 |
new ScrambleState( new int[][] {{} , {2, 1, 75,2, 2, 76} , {2,-1, 11} }), |
|
125 |
new ScrambleState( new int[][] {{} , {2, 1, 79,2, 2, 80,2,-1, 65}, {0,-1, 76} }), |
|
126 |
new ScrambleState( new int[][] {{} , {2, 1, 80,2, 2, 65,2,-1, 78}, {2,-1,110} }), |
|
127 |
new ScrambleState( new int[][] {{2, 1, 81,2,-1, 82} , {2, 1, 65,2, 2, 78,2,-1, 79}, {2, 1, 6,2,-1, 7} }), //80 |
|
128 |
new ScrambleState( new int[][] {{2, 2, 82,2,-1, 80} , {} , {2, 1, 44} }), |
|
129 |
new ScrambleState( new int[][] {{2, 1, 80,2, 2, 81} , {2, 1, 83,2,-1, 84} , {0,-1, 15} }), |
|
130 |
new ScrambleState( new int[][] {{} , {2, 2, 84,2,-1, 82} , {0, 2,138,0,-1, 74} }), |
|
131 |
new ScrambleState( new int[][] {{2, 1, 85} , {2, 1, 82,2, 2, 83} , {} }), |
|
132 |
new ScrambleState( new int[][] {{2,-1, 84} , {} , {2, 1, 86,2, 2,119} }), |
|
133 |
new ScrambleState( new int[][] {{2, 1, 87,2,-1, 88} , {2, 1, 43,2, 2,114,2,-1,113}, {2, 1,119,2,-1, 85} }), |
|
134 |
new ScrambleState( new int[][] {{2, 2, 88,2,-1, 86} , {} , {2, 1, 94} }), |
|
135 |
new ScrambleState( new int[][] {{2, 1, 86,2, 2, 87} , {2, 1, 89} , {} }), |
|
136 |
new ScrambleState( new int[][] {{} , {2,-1, 88} , {0, 2, 90,0,-1, 31} }), |
|
137 |
new ScrambleState( new int[][] {{2, 1, 91,2, 2, 92} , {} , {0, 1, 31,0, 2, 89} }), //90 |
|
138 |
new ScrambleState( new int[][] {{2, 1, 92,2,-1, 90} , {} , {0, 1, 93} }), |
|
139 |
new ScrambleState( new int[][] {{2, 2, 90,2,-1, 91} , {} , {2,-1, 23} }), |
|
140 |
new ScrambleState( new int[][] {{} , {2, 2, 37,2,-1, 38} , {0,-1, 91} }), |
|
141 |
new ScrambleState( new int[][] {{} , {2,-1, 95} , {2,-1, 87} }), |
|
142 |
new ScrambleState( new int[][] {{} , {2, 1, 94} , {2,-1, 96} }), |
|
143 |
new ScrambleState( new int[][] {{} , {2, 1, 97} , {2, 1, 95} }), |
|
144 |
new ScrambleState( new int[][] {{2, 1, 98} , {2,-1, 96} , {} }), |
|
145 |
new ScrambleState( new int[][] {{2,-1, 97} , {} , {2,-1, 99} }), |
|
146 |
new ScrambleState( new int[][] {{2, 2,100,2,-1,101} , {} , {2, 1, 98} }), |
|
147 |
new ScrambleState( new int[][] {{2, 1,101,2, 2, 99} , {2, 1,111,2,-1,112} , {} }), //100 |
|
148 |
new ScrambleState( new int[][] {{2, 1, 99,2,-1,100} , {2, 1,102} , {2, 1,108,2,-1,109} }), |
|
149 |
new ScrambleState( new int[][] {{2, 1,103,2,-1,104} , {2,-1,101} , {} }), |
|
150 |
new ScrambleState( new int[][] {{2, 2,104,2,-1,102} , {} , {2,-1,105} }), |
|
151 |
new ScrambleState( new int[][] {{2, 1,102,2, 2,103} , {} , {0, 1, 54} }), |
|
152 |
new ScrambleState( new int[][] {{2,-1,106} , {} , {2, 1,103} }), |
|
153 |
new ScrambleState( new int[][] {{2, 1,105} , {} , {2, 1,107} }), |
|
154 |
new ScrambleState( new int[][] {{} , {2, 1, 66} , {2,-1,106} }), |
|
155 |
new ScrambleState( new int[][] {{} , {2, 1, 44,2, 2, 48} , {2, 2,109,2,-1,101} }), |
|
156 |
new ScrambleState( new int[][] {{2,-1,110} , {} , {2, 1,101,2, 2,108} }), |
|
157 |
new ScrambleState( new int[][] {{2, 1,109} , {} , {2, 1, 79} }), //110 |
|
158 |
new ScrambleState( new int[][] {{} , {2, 2,112,2,-1,100} , {0, 2,115,0,-1, 16} }), |
|
159 |
new ScrambleState( new int[][] {{} , {2, 1,100,2, 2,111} , {2, 1,113} }), |
|
160 |
new ScrambleState( new int[][] {{} , {2, 1, 86,2, 2, 43,2,-1,114}, {2,-1,112} }), |
|
161 |
new ScrambleState( new int[][] {{} , {2, 1,113,2, 2, 86,2,-1, 43}, {0,-1, 0} }), |
|
162 |
new ScrambleState( new int[][] {{2, 2,116} , {} , {0, 1, 16,0, 2,111} }), |
|
163 |
new ScrambleState( new int[][] {{2, 2,115} , {} , {2,-1,117} }), |
|
164 |
new ScrambleState( new int[][] {{2, 1,118} , {} , {2, 1,116} }), |
|
165 |
new ScrambleState( new int[][] {{2,-1,117} , {} , {0, 1, 10} }), |
|
166 |
new ScrambleState( new int[][] {{} , {2, 1,120,2, 2,121,2,-1,122}, {2, 2, 85,2,-1, 86} }), |
|
167 |
new ScrambleState( new int[][] {{} , {2, 1,121,2, 2,122,2,-1,119}, {2,-1,129} }), //120 |
|
168 |
new ScrambleState( new int[][] {{} , {2, 1,122,2, 2,119,2,-1,120}, {0, 1,125} }), |
|
169 |
new ScrambleState( new int[][] {{} , {2, 1,119,2, 2,120,2,-1,121}, {0,-1,123} }), |
|
170 |
new ScrambleState( new int[][] {{} , {2, 2,124} , {0, 1,122} }), |
|
171 |
new ScrambleState( new int[][] {{} , {2, 2,123} , {2, 2, 27,2,-1, 28} }), |
|
172 |
new ScrambleState( new int[][] {{} , {2, 1,126} , {0,-1,121} }), |
|
173 |
new ScrambleState( new int[][] {{} , {2,-1,125} , {2,-1,127} }), |
|
174 |
new ScrambleState( new int[][] {{} , {2, 2,128} , {2, 1,126} }), |
|
175 |
new ScrambleState( new int[][] {{} , {2, 2,127} , {0, 2, 42,0,-1, 43} }), |
|
176 |
new ScrambleState( new int[][] {{2, 2,130,2,-1,131} , {} , {2, 1,120} }), |
|
177 |
new ScrambleState( new int[][] {{2, 1,131,2, 2,129} , {} , {0,-1, 30} }), //130 |
|
178 |
new ScrambleState( new int[][] {{2, 1,129,2,-1,130} , {2, 1, 3,2, 2,132} , {} }), |
|
179 |
new ScrambleState( new int[][] {{} , {2, 2,131,2,-1, 3} , {0,-1,133} }), |
|
180 |
new ScrambleState( new int[][] {{} , {2,-1,134} , {0, 1,132} }), |
|
181 |
new ScrambleState( new int[][] {{2,-1,135} , {2, 1,133} , {} }), |
|
182 |
new ScrambleState( new int[][] {{2, 1,134} , {} , {0,-1,136} }), |
|
183 |
new ScrambleState( new int[][] {{2, 1,137} , {} , {0, 1,135} }), |
|
184 |
new ScrambleState( new int[][] {{2,-1,136} , {} , {0, 1, 32} }), |
|
185 |
new ScrambleState( new int[][] {{2, 1,139} , {} , {0, 1, 74,0, 2, 83} }), |
|
186 |
new ScrambleState( new int[][] {{2,-1,138} , {} , {0, 1, 17} }), |
|
187 |
new ScrambleState( new int[][] {{} , {2, 1,141} , {2, 2, 19,2,-1, 39} }), //140 |
|
188 |
new ScrambleState( new int[][] {{} , {2,-1,140} , {2,-1, 29} }), |
|
189 |
new ScrambleState( new int[][] {{} , {2, 1, 28} , {2,-1, 18} }), |
|
190 |
new ScrambleState( new int[][] {{} , {2, 1, 1} , {2, 2, 12,2,-1, 13} }) |
|
191 |
}; |
|
192 |
} |
|
193 |
|
|
194 |
return mStates; |
|
195 |
} |
|
196 |
|
|
197 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
198 |
|
|
199 |
float[][] getPositions() |
|
200 |
{ |
|
201 |
if( POSITIONS==null ) |
|
202 |
{ |
|
203 |
POSITIONS = new float[][] |
|
204 |
{ |
|
205 |
{ 1.0f, 1.0f, -1.0f}, |
|
206 |
{-1.0f, -1.0f, 0.0f, -1.0f, 0.0f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f, 0.0f, 0.0f}, |
|
207 |
{-1.0f, 1.0f, -1.0f, 0.0f, 1.0f, -1.0f}, |
|
208 |
{-1.0f, 0.0f, -1.0f, 0.0f, 0.0f, -1.0f}, |
|
209 |
{-1.0f, -1.0f, -1.0f, 0.0f, -1.0f, -1.0f}, |
|
210 |
{-1.0f, 1.0f, 0.0f, -1.0f, 1.0f, 1.0f}, |
|
211 |
{ 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f}, |
|
212 |
{ 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f}, |
|
213 |
{-1.0f, -1.0f, 1.0f, -1.0f, 0.0f, 1.0f}, |
|
214 |
{ 0.0f, -1.0f, 1.0f, 0.0f, 0.0f, 1.0f}, |
|
215 |
{ 1.0f, -1.0f, 1.0f, 1.0f, 0.0f, 1.0f}, |
|
216 |
{ 1.0f, -1.0f, 0.0f, 1.0f, 0.0f, 0.0f}, |
|
217 |
{ 1.0f, -1.0f, -1.0f, 1.0f, 0.0f, -1.0f} |
|
218 |
}; |
|
219 |
} |
|
220 |
return POSITIONS; |
|
221 |
} |
|
222 |
|
|
223 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
224 |
|
|
225 |
int[] getQuatIndices() |
|
226 |
{ |
|
227 |
if( QUAT_INDICES==null ) QUAT_INDICES = new int[] { 0, 1, 0, 0, 0, 2, 2, 2, 3, 3, 3, 3, 3 }; |
|
228 |
return QUAT_INDICES; |
|
229 |
} |
|
230 |
|
|
231 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
232 |
// PUBLIC API |
|
233 |
|
|
234 |
public ObjectType intGetObjectType(int[] numLayers) |
|
235 |
{ |
|
236 |
return ObjectType.BAN4_3; |
|
237 |
} |
|
238 |
|
|
239 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
240 |
|
|
241 |
public String getObjectName() |
|
242 |
{ |
|
243 |
return "Bandaged Cube B"; |
|
244 |
} |
|
245 |
|
|
246 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
247 |
|
|
248 |
public String getInventor() |
|
249 |
{ |
|
250 |
return "Uwe Meffert"; |
|
251 |
} |
|
252 |
|
|
253 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
254 |
|
|
255 |
public int getYearOfInvention() |
|
256 |
{ |
|
257 |
return 1999; |
|
258 |
} |
|
259 |
|
|
260 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
261 |
|
|
262 |
public int getComplexity() |
|
263 |
{ |
|
264 |
return 3; |
|
265 |
} |
|
266 |
|
|
267 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
268 |
|
|
269 |
public String[][] getTutorials() |
|
270 |
{ |
|
271 |
return new String[][]{ |
|
272 |
{"gb","AnpdIKICBpM","Trying to Solve a Bandaged Cube","RedKB"}, |
|
273 |
{"es","cUyo5fycrvI","Tutorial Bandaged Cube en español","Rafa Garcia Benacazon"}, |
|
274 |
{"ru","-MTzeEJptsg","Как собрать bandaged Cube B","стратегия знаний"}, |
|
275 |
{"fr","3rsfIJ3roT0","Tutoriel: résolution du Bicube","Skieur Cubb"}, |
|
276 |
{"de","sqWVRwkXX9w","Bandaged Cube - Tutorial","GerCubing"}, |
|
277 |
{"pl","XcHzTvVR6Po","Bandaged 3x3 v.B cube","MrUK"}, |
|
278 |
{"kr","1gsoijF_5q0","BiCube Tutorial (해법)","듀나메스 큐브 해법연구소"}, |
|
279 |
}; |
|
280 |
} |
|
281 |
} |
Also available in: Unified diff
up the number of scrambles of the BAN2 and BAN4 objects to respectively 20 and 22.