Does anybody have any idea on how to model a rubix cube in an array? I can't seem to think of a way?
Asked
Active
Viewed 3,639 times
0
-
A better way is to use JSON to model a rubik's cube instead of array – Confuse Sep 14 '14 at 07:28
2 Answers
3
The source code for this one is available:
http://software.rubikscube.info/AnimCube/
Your in luck, it's Java. :)
This paper shows different ways to model the cube -
http://portal.acm.org/citation.cfm?id=801107&coll=portal&dl=ACM
and another exploratory paper...
http://www.chilton.com/~jimw/rubik.html
but a simple answer would be a 3x3x3 array with 3 digits.

Brandon Frohbieter
- 17,563
- 3
- 40
- 62
2
I wouldn't try a 1 dimensional array. But you could have a 3 dimensional array.
And array of 3x3 arrays of each side.

thomasfedb
- 5,990
- 2
- 37
- 65