Click here to Skip to main content
15,943,093 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I initialize the rubix cube's state using just the arrays within the program without the use of the visualizer? I want to translate a rubix cube I have in another program for comparing different rubix cube algorithms.


Any advice would be highly appreciated and thank you for reading my question.


Rubik’s Cube for Beginners (Version 2.0). C# Application with 3D Graphics and Animation. VS2022 .NET6[^]

What I have tried:

My first approach was to get the state of the rubix cube which is represented by a string from all its facelets into the color array with 8 for each facelet in the order of the cube faces seen in the diagram. It seems to translate properly when the cube is in its solved state but as soon as I begin to rotate it I have issues.
Posted
Updated 7-Mar-23 19:17pm
v2
Comments
Dave Kreskowiak 7-Mar-23 18:06pm    
That is going to be a question for the person who wrote the article. I see you already found the forum. That's the place to ask as everyone who writes an article supports the article.
Elijah G 2023 10-Mar-23 2:29am    
My apologies I didn't mean to post it here

1 solution

Don't post this under Quick Answers - if you got the code from an article, then there is a "Add a Comment or Question" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900