Solves a given Rubik's Cube state by providing the sequence of moves required to solve it.
rubik(state) rubik(state, target)
Solve a scrambled cube using its color state
rubik("ROBRWYWOY BYGBGBOBG OGOWRGRRR WWWOBYBRB GYRBOROGG WOYWYGYWY");
Result:
R' U B' R' L' B' L' F' L B2 L D B2 D R2 U2 D' F2 U' B2 R2
Explanation:
This sequence of moves will transform the given cube state into the solved configuration. The notation follows standard Rubik’s Cube move notation: