I am student of computer science. And i have a project to make the rubik cube 2X2X2 solver in C++. I have used matrices to solve the cube , and cube is solving the scrambled input correctly but a specific input , which means that our rotations are working correctly. Now i have to code for any input. i have red many ways but i am unable to decide which one is the correct and easy way. so kindly if someone know any easy and correct agorithm to solve a rubik cube for any input , share with me.
Can you give an example of what you are saying?
i mean that my code is solving for following input , with given rotations.
2x2x2 Cube Solution
this is the particular cube. now we have to make a genral solution so it may solve any 2X2X2 cube.