src/main.cpp
/**
 * Solves the Rubik's cube.
 */
Solves the Rubik's cube.
Solves the Rubik ' s cube .
void solve() {
    int copyOfState[6][3][3];
    int i;
    Move m;
    safeToUpdate = false;
    copyState(copyOfState, cube->getState());
    solveLetterNotations = create_threads(copyOfState, scrambleDepth);
    for (i=0; i<scrambleDepth; i++) {
        m.slice = solveLetterNotations[i];
        m.degrees = Ninety;
        moves[scrambleDepth-i-1] = m;
    }
    safeToUpdate = true;
}
void solve ( ) { int copyOfState [ 6 ] [ 3 ] [ 3 ] ; int i ; Move m ; safeToUpdate = false ; copyState ( copyOfState , cube -> getState ( ) ) ; solveLetterNotations = create_threads ( copyOfState , scrambleDepth ) ; for ( i = 0 ; i < scrambleDepth ; i ++ ) { m . slice = solveLetterNotations [ i ] ; m . degrees = Ninety ; moves [ scrambleDepth - i - 1 ] = m ; } safeToUpdate = true ; }
Solves the Rubik's cube.
Solves the Rubik ' s cube .