I am writing my own application which will be able to solve any given cube.
Now I am working on a functionality where the user can set initial state of the cube, it will look something like this: http://www.monster-legends.info/images/solve-rubik's-cube.jpg
But as you probably know, only 1/12 of all possible states are actually reachable. How can I check if the cube is in the correct state?
Now I am working on a functionality where the user can set initial state of the cube, it will look something like this: http://www.monster-legends.info/images/solve-rubik's-cube.jpg
But as you probably know, only 1/12 of all possible states are actually reachable. How can I check if the cube is in the correct state?