1
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
2
|
// Copyright 2019 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 static org.distorted.objectlib.touchcontrol.TouchControl.TC_CUBOID;
|
23
|
import static org.distorted.objectlib.touchcontrol.TouchControl.TYPE_NOT_SPLIT;
|
24
|
|
25
|
import java.io.InputStream;
|
26
|
|
27
|
import org.distorted.library.type.Static3D;
|
28
|
import org.distorted.library.type.Static4D;
|
29
|
|
30
|
import org.distorted.objectlib.helpers.ObjectFaceShape;
|
31
|
import org.distorted.objectlib.touchcontrol.TouchControlCuboids;
|
32
|
import org.distorted.objectlib.main.ObjectType;
|
33
|
import org.distorted.objectlib.helpers.ObjectShape;
|
34
|
import org.distorted.objectlib.scrambling.ScrambleState;
|
35
|
import org.distorted.objectlib.main.ShapeHexahedron;
|
36
|
|
37
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
38
|
|
39
|
public class TwistyCuboid extends ShapeHexahedron
|
40
|
{
|
41
|
static final Static3D[] ROT_AXIS = new Static3D[]
|
42
|
{
|
43
|
new Static3D(1,0,0),
|
44
|
new Static3D(0,1,0),
|
45
|
new Static3D(0,0,1)
|
46
|
};
|
47
|
|
48
|
private ScrambleState[] mStates;
|
49
|
private float[][] mCuts;
|
50
|
private int[] mBasicAngle;
|
51
|
|
52
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
53
|
|
54
|
public TwistyCuboid(int[] numL, int meshState, int iconMode, Static4D quat, Static3D move, float scale, InputStream stream)
|
55
|
{
|
56
|
super(numL, meshState, iconMode, (numL[0]+numL[1]+numL[2])/3.0f, quat, move, scale, stream);
|
57
|
}
|
58
|
|
59
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
60
|
// we need to explicitly provide the quaternion group because the Cuboids do not have the whole
|
61
|
// group and it would crash in getCubitQuats()
|
62
|
|
63
|
@Override
|
64
|
public Static4D[] getQuats()
|
65
|
{
|
66
|
return new Static4D[]
|
67
|
{
|
68
|
new Static4D( 0.0f, 0.0f, 0.0f, 1.0f ),
|
69
|
new Static4D( SQ2/2, 0.0f, 0.0f, SQ2/2),
|
70
|
new Static4D( 1.0f, 0.0f, 0.0f, 0.0f ),
|
71
|
new Static4D( SQ2/2, 0.0f, 0.0f,-SQ2/2),
|
72
|
new Static4D( 0.0f, SQ2/2, 0.0f, SQ2/2),
|
73
|
new Static4D( 0.0f, 1.0f, 0.0f, 0.0f),
|
74
|
new Static4D( 0.0f, SQ2/2, 0.0f,-SQ2/2),
|
75
|
new Static4D( 0.0f, 0.0f, SQ2/2, SQ2/2),
|
76
|
new Static4D( 0.0f, 0.0f, 1.0f, 0.0f),
|
77
|
new Static4D( 0.0f, 0.0f, SQ2/2,-SQ2/2),
|
78
|
new Static4D( 0.5f, 0.5f, -0.5f, 0.5f),
|
79
|
new Static4D( 0.0f, SQ2/2,-SQ2/2, 0.0f),
|
80
|
new Static4D( -0.5f, 0.5f, -0.5f, -0.5f),
|
81
|
new Static4D( 0.5f, 0.5f, 0.5f, 0.5f),
|
82
|
new Static4D( 0.0f, SQ2/2, SQ2/2, 0.0f),
|
83
|
new Static4D( -0.5f, 0.5f, 0.5f, -0.5f),
|
84
|
new Static4D( SQ2/2, 0.0f,-SQ2/2, 0.0f),
|
85
|
new Static4D(-SQ2/2, 0.0f,-SQ2/2, 0.0f),
|
86
|
new Static4D( SQ2/2, SQ2/2, 0.0f, 0.0f),
|
87
|
new Static4D(-SQ2/2, SQ2/2, 0.0f, 0.0f),
|
88
|
new Static4D( 0.5f, -0.5f, -0.5f, -0.5f),
|
89
|
new Static4D( -0.5f, -0.5f, -0.5f, 0.5f),
|
90
|
new Static4D( 0.5f, 0.5f, -0.5f, -0.5f),
|
91
|
new Static4D( -0.5f, 0.5f, -0.5f, 0.5f),
|
92
|
};
|
93
|
}
|
94
|
|
95
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
96
|
|
97
|
private int[] createEdges(int size, boolean full, int vertex)
|
98
|
{
|
99
|
if( size==1 ) return null;
|
100
|
|
101
|
if( full )
|
102
|
{
|
103
|
int[] ret = new int[9*size];
|
104
|
|
105
|
for(int l=0; l<size; l++)
|
106
|
{
|
107
|
ret[9*l ] = l;
|
108
|
ret[9*l+1] =-1;
|
109
|
ret[9*l+2] = vertex;
|
110
|
ret[9*l+3] = l;
|
111
|
ret[9*l+4] = 1;
|
112
|
ret[9*l+5] = vertex;
|
113
|
ret[9*l+6] = l;
|
114
|
ret[9*l+7] = 2;
|
115
|
ret[9*l+8] = vertex;
|
116
|
}
|
117
|
|
118
|
return ret;
|
119
|
}
|
120
|
else
|
121
|
{
|
122
|
int[] ret = new int[6*size];
|
123
|
|
124
|
for(int l=0; l<size; l++)
|
125
|
{
|
126
|
ret[6*l ] = l;
|
127
|
ret[6*l+1] = 1;
|
128
|
ret[6*l+2] = vertex;
|
129
|
ret[6*l+3] = l;
|
130
|
ret[6*l+4] =-1;
|
131
|
ret[6*l+5] = vertex;
|
132
|
}
|
133
|
|
134
|
return ret;
|
135
|
}
|
136
|
}
|
137
|
|
138
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
139
|
|
140
|
public ScrambleState[] getScrambleStates()
|
141
|
{
|
142
|
if( mStates==null )
|
143
|
{
|
144
|
int[] numLayers = getNumLayers();
|
145
|
|
146
|
int X = numLayers[0];
|
147
|
int Y = numLayers[1];
|
148
|
int Z = numLayers[2];
|
149
|
|
150
|
int[][] mX = new int[16][];
|
151
|
int[][] mY = new int[16][];
|
152
|
int[][] mZ = new int[16][];
|
153
|
|
154
|
for(int i=0; i<16; i++)
|
155
|
{
|
156
|
mX[i] = createEdges(X,Y==Z,i);
|
157
|
mY[i] = createEdges(Y,X==Z,i);
|
158
|
mZ[i] = createEdges(Z,X==Y,i);
|
159
|
}
|
160
|
|
161
|
if( X>1 && Y>1 && Z>1 )
|
162
|
{
|
163
|
mStates = new ScrambleState[]
|
164
|
{
|
165
|
new ScrambleState( new int[][] { mX[ 1], mY[ 2], mZ[ 3] } ), // 0 0
|
166
|
new ScrambleState( new int[][] { null, mY[ 4], mZ[ 5] } ), // 1 x
|
167
|
new ScrambleState( new int[][] { mX[ 6], null, mZ[ 7] } ), // 2 y
|
168
|
new ScrambleState( new int[][] { mX[ 8], mY[ 9], null } ), // 3 z
|
169
|
new ScrambleState( new int[][] { mX[10], null, mZ[ 7] } ), // 4 xy
|
170
|
new ScrambleState( new int[][] { mX[11], mY[ 9], null } ), // 5 xz
|
171
|
new ScrambleState( new int[][] { null, mY[12], mZ[ 5] } ), // 6 yx
|
172
|
new ScrambleState( new int[][] { mX[ 8], mY[13], null } ), // 7 yz
|
173
|
new ScrambleState( new int[][] { null, mY[ 4], mZ[14] } ), // 8 zx
|
174
|
new ScrambleState( new int[][] { mX[ 6], null, mZ[15] } ), // 9 zy
|
175
|
new ScrambleState( new int[][] { null, null, mZ[ 5] } ), // 10 xyx
|
176
|
new ScrambleState( new int[][] { null, mY[ 4], null } ), // 11 xzx
|
177
|
new ScrambleState( new int[][] { null, null, mZ[ 7] } ), // 12 yxy
|
178
|
new ScrambleState( new int[][] { mX[ 6], null, null } ), // 13 yzy
|
179
|
new ScrambleState( new int[][] { null, mY[ 9], null } ), // 14 zxz
|
180
|
new ScrambleState( new int[][] { mX[ 8], null, null } ), // 15 zyz
|
181
|
};
|
182
|
}
|
183
|
else if( X==1 && Y==1 && Z==1 )
|
184
|
{
|
185
|
int[] state = new int[] {0,-1,0,0,1,0,0,2,0};
|
186
|
|
187
|
mStates = new ScrambleState[]
|
188
|
{
|
189
|
new ScrambleState( new int[][] { state, state, state } )
|
190
|
};
|
191
|
}
|
192
|
else
|
193
|
{
|
194
|
mStates = new ScrambleState[]
|
195
|
{
|
196
|
new ScrambleState( new int[][] { mX[ 0], mY[ 0], mZ[ 0] } )
|
197
|
};
|
198
|
}
|
199
|
|
200
|
}
|
201
|
|
202
|
return mStates;
|
203
|
}
|
204
|
|
205
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
206
|
|
207
|
public ObjectShape getObjectShape(int variant)
|
208
|
{
|
209
|
float[][] vertices =
|
210
|
{
|
211
|
{ 0.5f, 0.5f, 0.5f },
|
212
|
{ 0.5f, 0.5f,-0.5f },
|
213
|
{ 0.5f,-0.5f, 0.5f },
|
214
|
{ 0.5f,-0.5f,-0.5f },
|
215
|
{-0.5f, 0.5f, 0.5f },
|
216
|
{-0.5f, 0.5f,-0.5f },
|
217
|
{-0.5f,-0.5f, 0.5f },
|
218
|
{-0.5f,-0.5f,-0.5f },
|
219
|
};
|
220
|
|
221
|
int[][] indices =
|
222
|
{
|
223
|
{2,3,1,0},
|
224
|
{7,6,4,5},
|
225
|
{4,0,1,5},
|
226
|
{7,3,2,6},
|
227
|
{6,2,0,4},
|
228
|
{3,7,5,1}
|
229
|
};
|
230
|
|
231
|
return new ObjectShape(vertices, indices);
|
232
|
}
|
233
|
|
234
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
235
|
|
236
|
public ObjectFaceShape getObjectFaceShape(int variant)
|
237
|
{
|
238
|
int[] bandIndices;
|
239
|
int extraI, extraV, num, numL = getNumLayers()[0];
|
240
|
float height = isInIconMode() ? 0.001f : 0.045f;
|
241
|
|
242
|
switch(numL)
|
243
|
{
|
244
|
case 2 : num = 6; extraI = 2; extraV = 2; break;
|
245
|
case 3 : num = 5; extraI = 2; extraV = 2; break;
|
246
|
case 4 : num = 5; extraI = 1; extraV = 1; break;
|
247
|
default: num = 5; extraI = 0; extraV = 0; break;
|
248
|
}
|
249
|
|
250
|
float[][] corners= { {0.036f,0.12f} };
|
251
|
float[][] centers= { {0.0f, 0.0f, 0.0f} };
|
252
|
int[] indices = { 0,0,0,0,0,0,0,0 };
|
253
|
float[][] bands =
|
254
|
{
|
255
|
{height,35,0.5f,0.7f,num,extraI,extraV},
|
256
|
{0.001f,35,0.5f,0.7f, 2, num-2,extraV},
|
257
|
{0.001f,35,0.5f,0.7f, 2, 0, 0},
|
258
|
{0.001f,35,0.5f,0.7f,num,extraI,extraV},
|
259
|
};
|
260
|
|
261
|
if( variant==0 ) bandIndices = new int[] {3,0,3,0,3,0};
|
262
|
else if( variant==1 ) bandIndices = new int[] {1,1,1,0,1,0};
|
263
|
else bandIndices = new int[] {2,2,2,2,0,2};
|
264
|
|
265
|
return new ObjectFaceShape(bands,bandIndices,corners,indices,centers,indices, null);
|
266
|
}
|
267
|
|
268
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
269
|
|
270
|
private int getEdgeNum(int cubit, int[] numLayers)
|
271
|
{
|
272
|
int x = numLayers[0];
|
273
|
int y = numLayers[1];
|
274
|
int z = numLayers[2];
|
275
|
|
276
|
if(x==1 || y==1 || z==1 ) return 0;
|
277
|
|
278
|
int numCorners = getNumCorners(numLayers);
|
279
|
int numEdges = getNumEdges(numLayers);
|
280
|
int num = cubit - numCorners;
|
281
|
|
282
|
if( num>=0 && num<numEdges )
|
283
|
{
|
284
|
int numLR = (x-2);
|
285
|
if( num< numLR ) return 0;
|
286
|
if( num<2*numLR ) return 1;
|
287
|
if( num<3*numLR ) return 2;
|
288
|
if( num<4*numLR ) return 3;
|
289
|
num -= 4*numLR;
|
290
|
|
291
|
int numTD = (y-2);
|
292
|
if( num< numTD ) return 4;
|
293
|
if( num<2*numTD ) return 5;
|
294
|
if( num<3*numTD ) return 6;
|
295
|
if( num<4*numTD ) return 7;
|
296
|
num -= 4*numTD;
|
297
|
|
298
|
int numFB = (z-2);
|
299
|
if( num< numFB ) return 8;
|
300
|
if( num<2*numFB ) return 9;
|
301
|
if( num<3*numFB ) return 10;
|
302
|
if( num<4*numFB ) return 11;
|
303
|
}
|
304
|
|
305
|
return -1;
|
306
|
}
|
307
|
|
308
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
309
|
|
310
|
private int getCenterNum(int cubit, int[] numLayers)
|
311
|
{
|
312
|
int numCorners = getNumCorners(numLayers);
|
313
|
int numEdges = getNumEdges(numLayers);
|
314
|
int num = cubit - numCorners - numEdges;
|
315
|
|
316
|
if( num>=0 )
|
317
|
{
|
318
|
int numLR = (numLayers[1]-2)*(numLayers[2]-2);
|
319
|
if( num< numLR ) return 0;
|
320
|
if( num<2*numLR ) return 1;
|
321
|
num -= 2*numLR;
|
322
|
|
323
|
int numTD = (numLayers[0]-2)*(numLayers[2]-2);
|
324
|
if( num< numTD ) return 2;
|
325
|
if( num<2*numTD ) return 3;
|
326
|
num -= 2*numTD;
|
327
|
|
328
|
int numFB = (numLayers[0]-2)*(numLayers[1]-2);
|
329
|
if( num< numFB ) return 4;
|
330
|
if( num<2*numFB ) return 5;
|
331
|
}
|
332
|
|
333
|
return -1;
|
334
|
}
|
335
|
|
336
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
337
|
|
338
|
private int getNumCorners(int[] numLayers)
|
339
|
{
|
340
|
int x = numLayers[0];
|
341
|
int y = numLayers[1];
|
342
|
int z = numLayers[2];
|
343
|
|
344
|
return ( x==1 || y==1 || z==1 ) ? x*y*z : 8;
|
345
|
}
|
346
|
|
347
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
348
|
|
349
|
private int getNumEdges(int[] numLayers)
|
350
|
{
|
351
|
int x = numLayers[0];
|
352
|
int y = numLayers[1];
|
353
|
int z = numLayers[2];
|
354
|
|
355
|
return ( x==1 || y==1 || z==1 ) ? x*y*z : 4*( (x-2)+(y-2)+(z-2) );
|
356
|
}
|
357
|
|
358
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
359
|
|
360
|
public float[][] getCubitPositions(int[] numLayers)
|
361
|
{
|
362
|
final int X = numLayers[0];
|
363
|
final int Y = numLayers[1];
|
364
|
final int Z = numLayers[2];
|
365
|
|
366
|
final float lenX = 0.5f*(X-1);
|
367
|
final float lenY = 0.5f*(Y-1);
|
368
|
final float lenZ = 0.5f*(Z-1);
|
369
|
|
370
|
int curPos = 0;
|
371
|
|
372
|
if( X==1 )
|
373
|
{
|
374
|
float[][] pos = new float[X*Y*Z][];
|
375
|
|
376
|
for(int y=0; y<Y; y++)
|
377
|
for(int z=0; z<Z; z++) pos[curPos++] = new float[] {+lenX,y-lenY,z-lenZ};
|
378
|
|
379
|
return pos;
|
380
|
}
|
381
|
|
382
|
if( Y==1 )
|
383
|
{
|
384
|
float[][] pos = new float[X*Y*Z][];
|
385
|
|
386
|
for(int x=0; x<X; x++)
|
387
|
for(int z=0; z<Z; z++) pos[curPos++] = new float[] {x-lenX,+lenY,z-lenZ};
|
388
|
|
389
|
return pos;
|
390
|
}
|
391
|
|
392
|
if( Z==1 )
|
393
|
{
|
394
|
float[][] pos = new float[X*Y*Z][];
|
395
|
|
396
|
for(int x=0; x<X; x++)
|
397
|
for(int y=0; y<Y; y++) pos[curPos++] = new float[] {x-lenX,y-lenY,+lenZ};
|
398
|
|
399
|
return pos;
|
400
|
}
|
401
|
|
402
|
int numCubits = X*Y*Z - (X-2)*(Y-2)*(Z-2);
|
403
|
float[][] pos = new float[numCubits][];
|
404
|
|
405
|
pos[curPos++] = new float[] {-lenX,-lenY,-lenZ};
|
406
|
pos[curPos++] = new float[] {-lenX,-lenY,+lenZ};
|
407
|
pos[curPos++] = new float[] {-lenX,+lenY,-lenZ};
|
408
|
pos[curPos++] = new float[] {-lenX,+lenY,+lenZ};
|
409
|
pos[curPos++] = new float[] {+lenX,-lenY,-lenZ};
|
410
|
pos[curPos++] = new float[] {+lenX,-lenY,+lenZ};
|
411
|
pos[curPos++] = new float[] {+lenX,+lenY,-lenZ};
|
412
|
pos[curPos++] = new float[] {+lenX,+lenY,+lenZ};
|
413
|
|
414
|
for(int i=1; i<X-1; i++) pos[curPos++] = new float[] { i-lenX, -lenY, -lenZ };
|
415
|
for(int i=1; i<X-1; i++) pos[curPos++] = new float[] { i-lenX, -lenY, +lenZ };
|
416
|
for(int i=1; i<X-1; i++) pos[curPos++] = new float[] { i-lenX, +lenY, -lenZ };
|
417
|
for(int i=1; i<X-1; i++) pos[curPos++] = new float[] { i-lenX, +lenY, +lenZ };
|
418
|
for(int i=1; i<Y-1; i++) pos[curPos++] = new float[] { -lenX, i-lenY, -lenZ };
|
419
|
for(int i=1; i<Y-1; i++) pos[curPos++] = new float[] { -lenX, i-lenY, +lenZ };
|
420
|
for(int i=1; i<Y-1; i++) pos[curPos++] = new float[] { +lenX, i-lenY, -lenZ };
|
421
|
for(int i=1; i<Y-1; i++) pos[curPos++] = new float[] { +lenX, i-lenY, +lenZ };
|
422
|
for(int i=1; i<Z-1; i++) pos[curPos++] = new float[] { -lenX, -lenY, i-lenZ };
|
423
|
for(int i=1; i<Z-1; i++) pos[curPos++] = new float[] { -lenX, +lenY, i-lenZ };
|
424
|
for(int i=1; i<Z-1; i++) pos[curPos++] = new float[] { +lenX, -lenY, i-lenZ };
|
425
|
for(int i=1; i<Z-1; i++) pos[curPos++] = new float[] { +lenX, +lenY, i-lenZ };
|
426
|
|
427
|
for(int y=1; y<Y-1; y++)
|
428
|
for(int z=1; z<Z-1; z++) pos[curPos++] = new float[] {+lenX,y-lenY,z-lenZ};
|
429
|
|
430
|
for(int y=1; y<Y-1; y++)
|
431
|
for(int z=1; z<Z-1; z++) pos[curPos++] = new float[] {-lenX,y-lenY,z-lenZ};
|
432
|
|
433
|
for(int x=1; x<X-1; x++)
|
434
|
for(int z=1; z<Z-1; z++) pos[curPos++] = new float[] {x-lenX,+lenY,z-lenZ};
|
435
|
|
436
|
for(int x=1; x<X-1; x++)
|
437
|
for(int z=1; z<Z-1; z++) pos[curPos++] = new float[] {x-lenX,-lenY,z-lenZ};
|
438
|
|
439
|
for(int x=1; x<X-1; x++)
|
440
|
for(int y=1; y<Y-1; y++) pos[curPos++] = new float[] {x-lenX,y-lenY,+lenZ};
|
441
|
|
442
|
for(int x=1; x<X-1; x++)
|
443
|
for(int y=1; y<Y-1; y++) pos[curPos++] = new float[] {x-lenX,y-lenY,-lenZ};
|
444
|
|
445
|
return pos;
|
446
|
}
|
447
|
|
448
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
449
|
|
450
|
public Static4D getCubitQuats(int cubit, int[] numLayers)
|
451
|
{
|
452
|
int variant = getCubitVariant(cubit,numLayers);
|
453
|
|
454
|
switch(variant)
|
455
|
{
|
456
|
case 0: switch(cubit)
|
457
|
{
|
458
|
case 0: return mObjectQuats[ 0];
|
459
|
case 1: return mObjectQuats[18];
|
460
|
case 2: return mObjectQuats[17];
|
461
|
case 3: return mObjectQuats[ 2];
|
462
|
case 4: return mObjectQuats[14];
|
463
|
case 5: return mObjectQuats[ 5];
|
464
|
case 6: return mObjectQuats[ 8];
|
465
|
case 7: return mObjectQuats[11];
|
466
|
}
|
467
|
case 1: int edgeEdge = getEdgeNum(cubit,numLayers);
|
468
|
switch(edgeEdge)
|
469
|
{
|
470
|
case 0: return mObjectQuats[ 0];
|
471
|
case 1: return mObjectQuats[ 1];
|
472
|
case 2: return mObjectQuats[ 3];
|
473
|
case 3: return mObjectQuats[ 2];
|
474
|
case 4: return mObjectQuats[21];
|
475
|
case 5: return mObjectQuats[18];
|
476
|
case 6: return mObjectQuats[20];
|
477
|
case 7: return mObjectQuats[19];
|
478
|
case 8: return mObjectQuats[13];
|
479
|
case 9: return mObjectQuats[17];
|
480
|
case 10: return mObjectQuats[15];
|
481
|
case 11: return mObjectQuats[16];
|
482
|
}
|
483
|
break;
|
484
|
case 2: int centerFace = getCenterNum(cubit,numLayers);
|
485
|
switch(centerFace)
|
486
|
{
|
487
|
case 0 : return mObjectQuats[ 6];
|
488
|
case 1 : return mObjectQuats[ 4];
|
489
|
case 2 : return mObjectQuats[ 1];
|
490
|
case 3 : return mObjectQuats[ 3];
|
491
|
case 4 : return mObjectQuats[ 0];
|
492
|
case 5 : return mObjectQuats[ 2];
|
493
|
}
|
494
|
}
|
495
|
|
496
|
return mObjectQuats[0];
|
497
|
}
|
498
|
|
499
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
500
|
|
501
|
public int getNumCubitVariants(int[] numLayers)
|
502
|
{
|
503
|
final int X = numLayers[0];
|
504
|
final int Y = numLayers[1];
|
505
|
final int Z = numLayers[2];
|
506
|
|
507
|
if( X==1 || Y==1 || Z==1 ) return 1;
|
508
|
if( X<=2 && Y<=2 && Z<=2 ) return 1;
|
509
|
|
510
|
return 3;
|
511
|
}
|
512
|
|
513
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
514
|
|
515
|
public int getCubitVariant(int cubit, int[] numLayers)
|
516
|
{
|
517
|
int numCorners = getNumCorners(numLayers);
|
518
|
if( cubit < numCorners ) return 0;
|
519
|
int numEdges = getNumEdges(numLayers);
|
520
|
if( cubit < numCorners+numEdges ) return 1;
|
521
|
|
522
|
return 2;
|
523
|
}
|
524
|
|
525
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
526
|
|
527
|
public float[][] getCuts(int[] numLayers)
|
528
|
{
|
529
|
if( mCuts==null )
|
530
|
{
|
531
|
mCuts = new float[3][];
|
532
|
|
533
|
for(int axis=0; axis<3; axis++)
|
534
|
{
|
535
|
int len = numLayers[axis];
|
536
|
float start = (2-len)*0.5f;
|
537
|
|
538
|
if( len>=2 )
|
539
|
{
|
540
|
mCuts[axis] = new float[len-1];
|
541
|
for(int i=0; i<len-1; i++) mCuts[axis][i] = start+i;
|
542
|
}
|
543
|
}
|
544
|
}
|
545
|
|
546
|
return mCuts;
|
547
|
}
|
548
|
|
549
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
550
|
|
551
|
public boolean[][] getLayerRotatable(int[] numLayers)
|
552
|
{
|
553
|
int numAxis = ROT_AXIS.length;
|
554
|
boolean[][] layerRotatable = new boolean[numAxis][];
|
555
|
|
556
|
for(int i=0; i<numAxis; i++)
|
557
|
{
|
558
|
layerRotatable[i] = new boolean[numLayers[i]];
|
559
|
for(int j=0; j<numLayers[i]; j++) layerRotatable[i][j] = true;
|
560
|
}
|
561
|
|
562
|
return layerRotatable;
|
563
|
}
|
564
|
|
565
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
566
|
|
567
|
public int getTouchControlType()
|
568
|
{
|
569
|
return TC_CUBOID;
|
570
|
}
|
571
|
|
572
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
573
|
|
574
|
public int getTouchControlSplit()
|
575
|
{
|
576
|
return TYPE_NOT_SPLIT;
|
577
|
}
|
578
|
|
579
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
580
|
|
581
|
public int[][][] getEnabled()
|
582
|
{
|
583
|
return new int[][][] { {{1,2}},{{1,2}},{{0,2}},{{0,2}},{{0,1}},{{0,1}} };
|
584
|
}
|
585
|
|
586
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
587
|
|
588
|
public float[] getDist3D(int[] numLayers)
|
589
|
{
|
590
|
float avg = (numLayers[0]+numLayers[1]+numLayers[2])/3.0f;
|
591
|
|
592
|
return new float[]
|
593
|
{
|
594
|
0.5f*numLayers[0]/avg,
|
595
|
0.5f*numLayers[0]/avg,
|
596
|
0.5f*numLayers[1]/avg,
|
597
|
0.5f*numLayers[1]/avg,
|
598
|
0.5f*numLayers[2]/avg,
|
599
|
0.5f*numLayers[2]/avg,
|
600
|
};
|
601
|
}
|
602
|
|
603
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
604
|
|
605
|
public Static3D[] getFaceAxis()
|
606
|
{
|
607
|
return TouchControlCuboids.FACE_AXIS;
|
608
|
}
|
609
|
|
610
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
611
|
|
612
|
public float getStickerRadius()
|
613
|
{
|
614
|
return 0.10f;
|
615
|
}
|
616
|
|
617
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
618
|
|
619
|
public float getStickerStroke()
|
620
|
{
|
621
|
float stroke = 0.08f;
|
622
|
|
623
|
if( isInIconMode() )
|
624
|
{
|
625
|
int[] numLayers = getNumLayers();
|
626
|
|
627
|
switch(numLayers[0])
|
628
|
{
|
629
|
case 2: stroke*=1.8f; break;
|
630
|
case 3: stroke*=2.0f; break;
|
631
|
case 4: stroke*=2.1f; break;
|
632
|
default:stroke*=2.2f; break;
|
633
|
}
|
634
|
}
|
635
|
|
636
|
return stroke;
|
637
|
}
|
638
|
|
639
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
640
|
|
641
|
public float[][] getStickerAngles()
|
642
|
{
|
643
|
return null;
|
644
|
}
|
645
|
|
646
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
647
|
// PUBLIC API
|
648
|
|
649
|
public Static3D[] getRotationAxis()
|
650
|
{
|
651
|
return ROT_AXIS;
|
652
|
}
|
653
|
|
654
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
655
|
|
656
|
public String getShortName()
|
657
|
{
|
658
|
int[] numLayers = getNumLayers();
|
659
|
|
660
|
int x = numLayers[0];
|
661
|
int y = numLayers[1];
|
662
|
|
663
|
switch(x)
|
664
|
{
|
665
|
case 2: switch(y)
|
666
|
{
|
667
|
case 2: return ObjectType.CUBE_2.name();
|
668
|
case 3: return ObjectType.CU_232.name();
|
669
|
}
|
670
|
case 3: switch(y)
|
671
|
{
|
672
|
case 2: return ObjectType.CU_323.name();
|
673
|
case 3: return ObjectType.CUBE_3.name();
|
674
|
case 4: return ObjectType.CU_343.name();
|
675
|
}
|
676
|
case 4: return ObjectType.CUBE_4.name();
|
677
|
case 5: return ObjectType.CUBE_5.name();
|
678
|
case 6: return ObjectType.CUBE_6.name();
|
679
|
case 7: return ObjectType.CUBE_7.name();
|
680
|
}
|
681
|
|
682
|
return ObjectType.CUBE_3.name();
|
683
|
}
|
684
|
|
685
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
686
|
|
687
|
public long getSignature()
|
688
|
{
|
689
|
int[] numLayers = getNumLayers();
|
690
|
|
691
|
int x = numLayers[0];
|
692
|
int y = numLayers[1];
|
693
|
|
694
|
switch(x)
|
695
|
{
|
696
|
case 2: switch(y)
|
697
|
{
|
698
|
case 2: return ObjectType.CUBE_2.ordinal();
|
699
|
case 3: return ObjectType.CU_232.ordinal();
|
700
|
}
|
701
|
case 3: switch(y)
|
702
|
{
|
703
|
case 2: return ObjectType.CU_323.ordinal();
|
704
|
case 3: return ObjectType.CUBE_3.ordinal();
|
705
|
case 4: return ObjectType.CU_343.ordinal();
|
706
|
}
|
707
|
case 4: return ObjectType.CUBE_4.ordinal();
|
708
|
case 5: return ObjectType.CUBE_5.ordinal();
|
709
|
case 6: return ObjectType.CUBE_6.ordinal();
|
710
|
case 7: return ObjectType.CUBE_7.ordinal();
|
711
|
}
|
712
|
|
713
|
return ObjectType.CUBE_3.ordinal();
|
714
|
}
|
715
|
|
716
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
717
|
|
718
|
public int[] getBasicAngles()
|
719
|
{
|
720
|
if( mBasicAngle==null )
|
721
|
{
|
722
|
int[] num = getNumLayers();
|
723
|
int x = num[1]==num[2] ? 4 : 2;
|
724
|
int y = num[0]==num[2] ? 4 : 2;
|
725
|
int z = num[0]==num[1] ? 4 : 2;
|
726
|
|
727
|
mBasicAngle = new int[] { x,y,z };
|
728
|
}
|
729
|
return mBasicAngle;
|
730
|
}
|
731
|
|
732
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
733
|
|
734
|
public String getObjectName()
|
735
|
{
|
736
|
int[] numLayers = getNumLayers();
|
737
|
|
738
|
int x = numLayers[0];
|
739
|
int y = numLayers[1];
|
740
|
|
741
|
switch(x)
|
742
|
{
|
743
|
case 2: switch(y)
|
744
|
{
|
745
|
case 2: return "Pocket Cube";
|
746
|
case 3: return "Slim Tower";
|
747
|
}
|
748
|
case 3: switch(y)
|
749
|
{
|
750
|
case 2: return "2x2x3 Cuboid";
|
751
|
case 3: return "Rubik Cube";
|
752
|
case 4: return "3x3x4 Cuboid";
|
753
|
}
|
754
|
case 4: return "Rubik's Revenge";
|
755
|
case 5: return "Professor's Cube";
|
756
|
case 6: return "6x6 Cube";
|
757
|
case 7: return "7x7 Cube";
|
758
|
}
|
759
|
|
760
|
return "Rubik Cube";
|
761
|
}
|
762
|
|
763
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
764
|
|
765
|
public String getInventor()
|
766
|
{
|
767
|
int[] numLayers = getNumLayers();
|
768
|
|
769
|
int x = numLayers[0];
|
770
|
int y = numLayers[1];
|
771
|
|
772
|
switch(x)
|
773
|
{
|
774
|
case 2: switch(y)
|
775
|
{
|
776
|
case 2: return "Larry Nichols";
|
777
|
case 3: return "Katsuhiko Okamoto";
|
778
|
}
|
779
|
case 3: switch(y)
|
780
|
{
|
781
|
case 2: return "Unknown";
|
782
|
case 3: return "Ernő Rubik";
|
783
|
case 4: return "Cube4You";
|
784
|
}
|
785
|
case 4: return "Péter Sebestény";
|
786
|
case 5: return "Udo Krell";
|
787
|
case 6:
|
788
|
case 7: return "Panagiotis Verdes";
|
789
|
}
|
790
|
|
791
|
return "Ernő Rubik";
|
792
|
}
|
793
|
|
794
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
795
|
|
796
|
public int getYearOfInvention()
|
797
|
{
|
798
|
int[] numLayers = getNumLayers();
|
799
|
|
800
|
int x = numLayers[0];
|
801
|
int y = numLayers[1];
|
802
|
|
803
|
switch(x)
|
804
|
{
|
805
|
case 2: switch(y)
|
806
|
{
|
807
|
case 2: return 1970;
|
808
|
case 3: return 2001;
|
809
|
}
|
810
|
case 3: switch(y)
|
811
|
{
|
812
|
case 2: return 0;
|
813
|
case 3: return 1974;
|
814
|
case 4: return 2009;
|
815
|
}
|
816
|
case 4: return 1981;
|
817
|
case 5: return 2002;
|
818
|
case 6:
|
819
|
case 7: return 2008;
|
820
|
}
|
821
|
|
822
|
return 1974;
|
823
|
}
|
824
|
|
825
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
826
|
|
827
|
public int getComplexity()
|
828
|
{
|
829
|
int[] numLayers = getNumLayers();
|
830
|
|
831
|
int x = numLayers[0];
|
832
|
int y = numLayers[1];
|
833
|
|
834
|
switch(x)
|
835
|
{
|
836
|
case 2: switch(y)
|
837
|
{
|
838
|
case 2:
|
839
|
case 3: return 1;
|
840
|
}
|
841
|
case 3: switch(y)
|
842
|
{
|
843
|
case 2:
|
844
|
case 3: return 2;
|
845
|
case 4: return 3;
|
846
|
}
|
847
|
case 4: return 3;
|
848
|
case 5:
|
849
|
case 6:
|
850
|
case 7: return 4;
|
851
|
}
|
852
|
|
853
|
return 2;
|
854
|
}
|
855
|
|
856
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
857
|
|
858
|
public String[][] getTutorials()
|
859
|
{
|
860
|
int[] numLayers = getNumLayers();
|
861
|
|
862
|
int x = numLayers[0];
|
863
|
int y = numLayers[1];
|
864
|
|
865
|
switch(x)
|
866
|
{
|
867
|
case 2: switch(y)
|
868
|
{
|
869
|
case 2: return new String[][] {
|
870
|
{"gb","rJlh5p2wAKA","How to Solve a 2x2 Rubik's Cube","Z3"},
|
871
|
{"es","f85wqJTIDlw","Resolver cubo de Rubik 2X2","Cuby"},
|
872
|
{"ru","azC6P3VYFkc","Как собрать кубик 2Х2","Е Бондаренко"},
|
873
|
{"fr","V1XS993AUuw","Résoudre le cube 2x2","Rachma Nikov"},
|
874
|
{"de","d8tKa8SRkXw","2x2 Zauberwürfel lösen","Pezcraft"},
|
875
|
{"pl","haNWdAYWGsY","Jak ułożyć kostkę Rubika 2x2","DżoDżo"},
|
876
|
{"br","42W6SM17EuM","Como resolver cubo 2x2","Pedro Filho"},
|
877
|
{"kr","wTMsdWKq6No","2x2 큐브 공식을 이해하는 해법","듀나메스 큐브 해법연구소"},
|
878
|
{"vn","hZ4Do8BbOPk","Tutorial N.84 - Cube 2x2x2","Duy Thích Rubik"},
|
879
|
// {"tw","CfOCXxhCb8U","2x2魔術方塊復原","1hrBLD"},
|
880
|
};
|
881
|
case 3: return new String[][] {
|
882
|
{"gb","6dYOrUgFCsc","How to Solve the 2x2x3","Z3"},
|
883
|
{"es","1G2jpnSY6J4","Resolver 2x2x3","Cuby"},
|
884
|
{"ru","cT4CEQwgFKA","Как собрать Cuboid 2x2x3","YG Cuber"},
|
885
|
{"fr","xJdC1PW8v3M","Résolution du 2x2x3","asthalis"},
|
886
|
{"de","NDjofQ42C9E","2x2x3 - Tutorial","GerCubing"},
|
887
|
{"pl","RWF-7v5KE74","2x2x3 cube Tutorial PL","MrUK"},
|
888
|
{"br","W6cp_1Q9SeY","Como resolver o cubóide 2x2x3","Pedro Filho"},
|
889
|
{"kr","DIaUaxQbJhw","2x2x3 해법","듀나메스 큐브 해법연구소"},
|
890
|
{"vn","MObar8ebkzg","Tutorial N.135 - 2x2x3 Cuboid","Duy Thích Rubik"},
|
891
|
};
|
892
|
}
|
893
|
case 3: switch(y)
|
894
|
{
|
895
|
case 2: return new String[][] {
|
896
|
{"gb","pbv652cE1AU","How To Solve the 3x3x2 ","JRCuber"},
|
897
|
{"es","5gPFr7HlZ6Y","Resolver 3x3x2 Cubo Domino","Cuby"},
|
898
|
{"ru","n5-fa1fd2cQ","Как собрать кубоид 3х3х2","RubicsGuide"},
|
899
|
{"fr","z6xToKiu38M","Résolution du 3x3x2","asthalis"},
|
900
|
{"de","3qI55VS5MrY","2x3x3 - Tutorial","GerCubing"},
|
901
|
{"pl","KSs928xIwKg","3x3x2 cube Tutorial PL","MrUK"},
|
902
|
{"br","RnjJBXOp9DA","Como resolver o cubóide 3x3x2","Pedro Filho"},
|
903
|
{"kr","E3Oj8bKcTO4","2x3x3 큐보이드해법","듀나메스 큐브 해법연구소"},
|
904
|
{"vn","XnJJkniJhFM","Hướng Dẫn Giải Rubik 3x3x2","Rubik Cube"},
|
905
|
};
|
906
|
case 3: return new String[][] {
|
907
|
{"gb","-8ohoCKN0Zw","How to Solve a Rubik's Cube","Z3"},
|
908
|
{"es","GyY0OxDk5lI","Resolver cubo de Rubik 3x3","Cuby"},
|
909
|
{"ru","5S2eq81FRzI","Как собрать кубик рубика","Е Бондаренко"},
|
910
|
{"fr","T-ASx2wbHVY","Comment résoudre un Rubik's Cube","Le Cube"},
|
911
|
{"de","epdcq0L3bDE","3x3 Zauberwürfel lösen","Pezcraft"},
|
912
|
{"pl","cBU9Y729nQM","Jak ułożyć kostkę Rubika 3x3","DżoDżo"},
|
913
|
{"br","Vdxl7TvX69c","Como resolver cubo 3x3","Pedro Filho"},
|
914
|
{"kr","PMLG4__npcY","3x3 큐브 기초해법 (파트1)","듀나메스 큐브 해법연구소"},
|
915
|
{"kr","vbvyjs4Vmoc","3x3 큐브 기초해법 (파트2)","듀나메스 큐브 해법연구소"},
|
916
|
{"kr","V5eeKu9abCc","3x3 큐브 기초해법 (파트3)","듀나메스 큐브 해법연구소"},
|
917
|
{"vn","q_ZAmUVX8vM","Hướng Dẫn Giải Rubik 3x3","Rubik Cube"},
|
918
|
// {"tw","76NmRQx5CLA","魔術方塊教學","1hrBLD"},
|
919
|
};
|
920
|
case 4: return new String[][] {
|
921
|
{"gb","nh8DqpMM3Ro","How to solve the 3x3x4","BeardedCubing"},
|
922
|
{"es","zQOjGrP07GU","Como resolver 3x3x4 Tutorial","Tutoriales Rubik"},
|
923
|
{"ru","NCdQRMKWf-8","Как собрать Cuboid 3x3x4","YG Cuber"},
|
924
|
{"fr","_zVedCuN-ds","Résolution du 3x3x4","asthalis"},
|
925
|
{"de","jQlBZhWD_V8","3x3x4 - Tutorial","GerCubing"},
|
926
|
{"pl","YaPi8UGLKQQ","3x3x4 cube Tutorial PL","MrUK"},
|
927
|
{"br","nfeJ1q_OoHU","Cuboid 3x3x4 Tutorial","Cubo da Loucura"},
|
928
|
{"kr","-kp5r7iXV0M","3x3x4 큐보이드해법","듀나메스 큐브 해법연구소"},
|
929
|
{"vn","FbI4Xbs88YU","Tutorial N.72 - 3x3x4 Cuboid","Duy Thích Rubik"},
|
930
|
};
|
931
|
}
|
932
|
case 4: return new String[][] {
|
933
|
{"gb","RR77Md71Ymc","How to Solve the 4x4 Rubik's Cube","Z3"},
|
934
|
{"es","d_4xk1r9hxU","Resolver cubo de Rubik 4x4","Cuby"},
|
935
|
{"ru","v5ytiOyTFSA","Как собрать кубик 4х4","Алексей Ярыгин"},
|
936
|
{"fr","C83gYXn-zpI","Comment résoudre un Rubik's Cube 4x4","Le Cube"},
|
937
|
{"de","Z7EmIp-TLN0","4x4 Zauberwürfel lösen","JamesKnopf"},
|
938
|
{"pl","LiUxNsowXiI","Jak ułożyć kostkę 4x4","DżoDżo"},
|
939
|
{"br","DQydZR0EHdo","Como resolver cubo 4x4","Pedro Filho"},
|
940
|
{"kr","5g4QORteCsk","원리로 이해하는 444 큐브 기초 해법","듀나메스 큐브 해법연구소"},
|
941
|
{"vn","D7F10BGdJ_E","Tutorial N.37 - Cube 4x4x4","Duy Thích Rubik"},
|
942
|
// {"tw","HuyaNIUaSqo","4x4魔術方塊復原#1","1hrBLD"},
|
943
|
// {"tw","gHho4gJQMXw","4x4魔術方塊復原#2","1hrBLD"},
|
944
|
// {"tw","7pbNgXMQxCE","4x4魔術方塊復原#3","1hrBLD"},
|
945
|
// {"tw","PZvc5XJ2bLY","4x4魔術方塊復原#4","1hrBLD"},
|
946
|
// {"tw","97vDE29lu2o","4x4魔術方塊復原#5","1hrBLD"},
|
947
|
};
|
948
|
case 5: return new String[][] {
|
949
|
{"gb","zMkNkXHzQts","How to Solve the 5x5 Rubik's Cube","Z3"},
|
950
|
{"es","6uaq-xfFs98","Resolver cubo de Rubik 5x5","Cuby"},
|
951
|
{"ru","UtKsyLk45uA","Как собрать кубик 5x5","Алексей Ярыгин"},
|
952
|
{"fr","sq14CsrSkbo","Comment résoudre un Rubik's Cube 5x5","Le Cube"},
|
953
|
{"de","luLwvHDPnrA","5x5 Zauberwürfel lösen","Pezcraft"},
|
954
|
{"pl","ERsPyWOF7mg","Jak ułożyć kostkę 5x5x5","DżoDżo"},
|
955
|
{"br","WQospjKXfvQ","Como resolver cubo 5x5","Pedro Filho"},
|
956
|
{"kr","D46qDaBFWNM","[555큐브]믿고보는영상!","Playon U온돌차"},
|
957
|
{"vn","vwmC_vRb_4s","Hướng Dẫn Giải Rubik 5x5","Rubik Cube"},
|
958
|
};
|
959
|
case 6: return new String[][] {
|
960
|
{"gb","SkZ9UadAOvQ","How to Solve the 6x6 Rubik's Cube","JPerm"},
|
961
|
{"es","9X-mW6wbnQQ","Resolver cubo de Rubik 6x6","Cuby"},
|
962
|
{"ru","yqEIek_l-44","Как собрать кубик Рубика 6х6","Алексей Ярыгин"},
|
963
|
{"fr","xMreDIM3uoU","Comment faire le 6x6x6","Xavier Hornet"},
|
964
|
{"de","TZFtwL0PZ-s","6x6 Zauberwürfel lösen","Pezcraft"},
|
965
|
{"pl","ZB4ROiJUb1o","Jak ułożyć kostkę 6x6x6","DżoDżo"},
|
966
|
{"br","vh9O47fjjxc","Como Resolver o Cubo 6x6","Pedro Filho"},
|
967
|
{"kr","ZUyDa2_dVFU","6x6 큐브 맞추는 방법","iamzoone"},
|
968
|
{"vn","tD7VGEGa584","Hướng Dẫn Giải Rubik 6x6","Rubik Cube"},
|
969
|
};
|
970
|
case 7: return new String[][] {
|
971
|
{"gb","xpI7jKs4bWQ","7x7 Centers (1/2)","CubeSkills"},
|
972
|
{"gb","xpI7jKs4bWQ","7x7 Edges & 3x3 Stage (2/2)","CubeSkills"},
|
973
|
{"es","q43XpYapOR8","Resolver cubo de Rubik 7x7","Cuby"},
|
974
|
{"ru","w41zK-1qruY","Как собрать кубик Рубика 7х7","Алексей Ярыгин"},
|
975
|
{"fr","_a31lM3i7r0","Comment résoudre le Rubik's Cube 7x7","Justin Fontugne"},
|
976
|
{"de","XAbEJS5H5Lw","7x7 Zauberwürfel lösen","Pezcraft"},
|
977
|
{"pl","uN5fH3USUfc","Jak ułożyć kostkę 7x7","Bartłomiej Krokos"},
|
978
|
{"kr","3wynYMk4eZk","7x7 큐브 맞추는 방법","iamzoone"},
|
979
|
{"vn","mKlOus6mP7w","Hướng Dẫn Giải Rubik 7x7","Rubik Cube"},
|
980
|
};
|
981
|
}
|
982
|
|
983
|
return null;
|
984
|
}
|
985
|
}
|