Revision a304ee64
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/objects/RubikCube.java | ||
---|---|---|
227 | 227 |
} |
228 | 228 |
|
229 | 229 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
230 |
// order: Up --> Right --> Front --> Down --> Left --> Back |
|
231 |
// (because the first implemented Solver - the two-phase Cube3 one - expects such order) |
|
232 |
// |
|
233 |
// s : size of the cube |
|
234 |
// |
|
235 |
// Left : index --> ((s-1) + index/s) * s + index%s |
|
236 |
// Right : index --> 6*s*s - 12*s + 7 - index |
|
237 |
// Bottom: index --> s|index ? (s-1 - index/s) : (s*s + s-1 + 4*(index%s -1)*(s-1) - index/s) |
|
238 |
// Top : index --> |
|
239 |
// Front : index --> |
|
240 |
// Back : index --> |
|
230 | 241 |
|
231 | 242 |
public String retObjectString() |
232 | 243 |
{ |
Also available in: Unified diff
Progress implementing RubikCube.retObjectString()