1
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
2
|
// Copyright 2020 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.helpers.ObjectSignature;
|
28
|
import org.distorted.objectlib.main.ObjectType;
|
29
|
import org.distorted.objectlib.scrambling.ScrambleState;
|
30
|
|
31
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
32
|
|
33
|
public class TwistyDino6 extends TwistyDino
|
34
|
{
|
35
|
public TwistyDino6(int[] numL, int meshState, int iconMode, Static4D quat, Static3D move, float scale, InputStream stream)
|
36
|
{
|
37
|
super(numL, meshState, iconMode, quat, move, scale, stream);
|
38
|
}
|
39
|
|
40
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
41
|
|
42
|
@Override
|
43
|
public int[][] getSolvedQuats()
|
44
|
{
|
45
|
return new int[][]
|
46
|
{
|
47
|
{ 4, 0,2,8,10 }, // 4 'X' cubits in the first group
|
48
|
{ 4, 1,3,9,11, 10 }, // 4 'Y' cubits in the second group + Q[10]
|
49
|
{ 4, 4,5,6,7 , 11 } // 4 'Z' cubits in the third group + Q[11]
|
50
|
};
|
51
|
}
|
52
|
|
53
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
54
|
|
55
|
public ScrambleState[] getScrambleStates()
|
56
|
{
|
57
|
if( mStates==null )
|
58
|
{
|
59
|
mStates = new ScrambleState[]
|
60
|
{
|
61
|
new ScrambleState( new int[][] { {0,1,1,0,-1,1, 2,1,2,2,-1,2},{0,1,3,0,-1,3, 2,1,4,2,-1,4},{0,1,5,0,-1,5, 2,1,6,2,-1,6},{0,1,7,0,-1,7, 2,1,8,2,-1,8} } ),
|
62
|
new ScrambleState( new int[][] { { },{0,1,3,0,-1,3 },{0,1,5,0,-1,5, },{ 2,1,8,2,-1,8} } ),
|
63
|
new ScrambleState( new int[][] { { },{ 2,1,4,2,-1,4},{ 2,1,6,2,-1,6},{0,1,7,0,-1,7 } } ),
|
64
|
new ScrambleState( new int[][] { {0,1,1,0,-1,1 },{ },{ 2,1,6,2,-1,6},{0,1,7,0,-1,7 } } ),
|
65
|
new ScrambleState( new int[][] { { 2,1,2,2,-1,2},{ },{0,1,5,0,-1,5, },{ 2,1,8,2,-1,8} } ),
|
66
|
new ScrambleState( new int[][] { {0,1,1,0,-1,1 },{ 2,1,4,2,-1,4},{ },{0,1,7,0,-1,7 } } ),
|
67
|
new ScrambleState( new int[][] { { 2,1,2,2,-1,2},{0,1,3,0,-1,3 },{ },{ 2,1,8,2,-1,8} } ),
|
68
|
new ScrambleState( new int[][] { { 2,1,2,2,-1,2},{0,1,3,0,-1,3 },{0,1,5,0,-1,5, },{ } } ),
|
69
|
new ScrambleState( new int[][] { {0,1,1,0,-1,1 },{ 2,1,4,2,-1,4},{ 2,1,6,2,-1,6},{ } } ),
|
70
|
};
|
71
|
}
|
72
|
|
73
|
return mStates;
|
74
|
}
|
75
|
|
76
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
77
|
|
78
|
public String getShortName()
|
79
|
{
|
80
|
return ObjectType.DINO_3.name();
|
81
|
}
|
82
|
|
83
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
84
|
|
85
|
public ObjectSignature getSignature()
|
86
|
{
|
87
|
return new ObjectSignature(ObjectType.DINO_3);
|
88
|
}
|
89
|
|
90
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
91
|
|
92
|
public String getObjectName()
|
93
|
{
|
94
|
return "Dino Cube (6 color)";
|
95
|
}
|
96
|
|
97
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
98
|
|
99
|
public String getInventor()
|
100
|
{
|
101
|
return "Robert Webb";
|
102
|
}
|
103
|
|
104
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
105
|
|
106
|
public int getYearOfInvention()
|
107
|
{
|
108
|
return 1985;
|
109
|
}
|
110
|
|
111
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
112
|
|
113
|
public String[][] getTutorials()
|
114
|
{
|
115
|
return new String[][]{
|
116
|
{"gb","puTJZqFBQwo","Dino Skewb Cube Tutorial","Bearded Cubing"},
|
117
|
{"es","6o1Yo5iCxvI","Resolver Cubo Dino","Cuby"},
|
118
|
{"ru","tWDrCtIv1_U","Как собрать Дино Куб","Алексей Ярыгин"},
|
119
|
{"fr","hNkpte7Mesc","Comment résoudre le Dino Cube","Valentino Cube"},
|
120
|
{"de","RqJLI6_C9JA","Dino Cube Tutorial","GerCubing"},
|
121
|
{"pl","o05DYu8UMio","Dino Cube TUTORIAL PL","MrUk"},
|
122
|
{"br","jAwjAF8dpOM","Como resolver o Dino Cube","Rafael Cinoto"},
|
123
|
{"kr","imbrqGPSXWQ","(엑스큐브)완전 정복하기!","초등취미생활"},
|
124
|
{"vn","GrcZ_Ct2iYI","Tutorial N.7 - Dino","Duy Thích Rubik"},
|
125
|
};
|
126
|
}
|
127
|
}
|