Revision 6a083c6a
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/objects/TwistyDino4.java | ||
---|---|---|
106 | 106 |
|
107 | 107 |
public boolean isSolved() |
108 | 108 |
{ |
109 |
android.util.Log.e("D", |
|
110 |
|
|
111 |
CUBITS[ 0].mQuatIndex+" "+ |
|
112 |
CUBITS[ 1].mQuatIndex+" "+ |
|
113 |
CUBITS[ 2].mQuatIndex+" "+ |
|
114 |
CUBITS[ 3].mQuatIndex+" "+ |
|
115 |
CUBITS[ 4].mQuatIndex+" "+ |
|
116 |
CUBITS[ 5].mQuatIndex+" "+ |
|
117 |
CUBITS[ 6].mQuatIndex+" "+ |
|
118 |
CUBITS[ 7].mQuatIndex+" "+ |
|
119 |
CUBITS[ 8].mQuatIndex+" "+ |
|
120 |
CUBITS[ 9].mQuatIndex+" "+ |
|
121 |
CUBITS[10].mQuatIndex+" "+ |
|
122 |
CUBITS[11].mQuatIndex |
|
123 |
|
|
124 |
); |
|
125 |
|
|
109 | 126 |
int redX = CUBITS[0].mQuatIndex; |
110 | 127 |
int bluX = CUBITS[2].mQuatIndex; |
111 | 128 |
int yelX = CUBITS[8].mQuatIndex; |
... | ... | |
114 | 131 |
CUBITS[1].mQuatIndex == bluX && CUBITS[5].mQuatIndex == bluX && |
115 | 132 |
CUBITS[9].mQuatIndex == yelX && CUBITS[4].mQuatIndex == yelX ) return true; |
116 | 133 |
|
117 |
if (CUBITS[3].mQuatIndex != mulQuat(redX,2)) return false; |
|
118 |
if (CUBITS[7].mQuatIndex != mulQuat(redX,8)) return false; |
|
119 |
if (CUBITS[1].mQuatIndex != mulQuat(bluX,2)) return false; |
|
120 |
if (CUBITS[5].mQuatIndex != mulQuat(bluX,8)) return false; |
|
121 |
if (CUBITS[9].mQuatIndex != mulQuat(yelX,2)) return false; |
|
122 |
if (CUBITS[4].mQuatIndex != mulQuat(yelX,8)) return false; |
|
134 |
if (CUBITS[3].mQuatIndex != mulQuat(redX,2)) |
|
135 |
{ |
|
136 |
android.util.Log.e("D", "FALSE 1"); |
|
137 |
return false; |
|
138 |
} |
|
139 |
if (CUBITS[7].mQuatIndex != mulQuat(redX,8)) |
|
140 |
{ |
|
141 |
android.util.Log.e("D", "FALSE 2"); |
|
142 |
return false; |
|
143 |
} |
|
144 |
if (CUBITS[1].mQuatIndex != mulQuat(bluX,2)) |
|
145 |
{ |
|
146 |
android.util.Log.e("D", "FALSE 3"); |
|
147 |
return false; |
|
148 |
} |
|
149 |
if (CUBITS[5].mQuatIndex != mulQuat(bluX,8)) |
|
150 |
{ |
|
151 |
android.util.Log.e("D", "FALSE 4"); |
|
152 |
return false; |
|
153 |
} |
|
154 |
if (CUBITS[9].mQuatIndex != mulQuat(yelX,2)) |
|
155 |
{ |
|
156 |
android.util.Log.e("D", "FALSE 5"); |
|
157 |
return false; |
|
158 |
} |
|
159 |
if (CUBITS[4].mQuatIndex != mulQuat(yelX,8)) |
|
160 |
{ |
|
161 |
android.util.Log.e("D", "FALSE 6"); |
|
162 |
return false; |
|
163 |
} |
|
123 | 164 |
|
124 | 165 |
return true; |
125 | 166 |
} |
Also available in: Unified diff
- report the Graphics driver's Renderer and Version.
- new Diamond, Skewb2 and Skewb3 meshes.