Board Thread:Program Announcements/@comment-76.18.68.192-20141231224800/@comment-5334617-20150103190523

An observation: You have arrays,  , etc, to represent the faces.

Questions: What is  for each of the faces? And what is ? If I were holding a physical Rubik's Cube in my hands with one face pointed towards me, and I asked you to point to the square that is, where would your finger be? And, for every other array entry?

I think the answers, when you have to explain it in these terms, may be more difficult to express than you think. I'd recommend you draw a Rubik's cube on a sheet of paper, and label each square in terms of. Then check that the 'rotate face' and 'rotate cube' subroutines actually move values in the arrays according to this map. It may require more s and more   loops, or another layer of indirection as to how the square position/square colour relationship is represented.