## The Strategy

The overall strategy to solve the 3x3 Rubik's cube is to place one cubie at the time, following the order in the table at the left of the 3D Cube.
(In the 'real life' the order is not mandatory. Here is a contraint imposed by the JS code.)

Cubies are positioned following these steps:

#### Step 1: white cross

 Cubies sorted in step 1 White cross Daisy

The goal: to place on the white face the four edges with a white sticker.

This is typically accomplished by creating a "daisy" pattern placing the white edges on the yellow face, and then moving the cubies from the yellow face to their correct positions on the white face.
(Going through the 'Daisy' splits the problem in two simple sub problems: the first is to put the 4 white edges face up, without worring about the color of other Face. The second is to bring each white edge in its correct position.)

The strategy: every edge with a white face will be firsty placed on the yellow face, white sticker up (regardless of the other color of the edge.). Then moved to the correct place on the white face.

Cases:

- Edge on layer 1: will be moved to layer 2. No sledgehammer needed.

- Edge on layer 2: will be moved to layer 3. Must be chosen a rotation that brings the white sticker to the yellow face. A sledgehammer will always be used (even if it may not be necessary). The sledgehammer must not involve edges on the white face, so the second move will be a rotation of the yellow face (that define exactly the right sledgehammer needed.).

- Edge on layer 3:
- 3.1 white sicker NOT on white face: the edge will be moved to layer 2. any sledgehammer having the second rotation on the yellow face, fits the pourpose .
- 3.2 white sicker on white face: a rotation of the yellow face will bring the edge to the position vertically above the final destination (for example if the second color of the edge is red, the roration is the one that brings the red sticker on the red face.)

#### Note

We know that the cubies left without any color, exposed in the cube above, can be rearranged by 6 different 'Sledgehammers'.

That is the 'minimal' requirement that allows to correctly positioning all the others cubies'.

That configuration (even if using different sets of colors) will be used along the overall tutorial.
(In other words: In essence, when there are only a few cubies already in place, at the beginning of the solving process, we have the most freedom of movement. Therefore, we should use the 'sledgehammer' with the color set that is currently most convenient. As we progress towards the end of the process, it will become increasingly necessary to use the unsorted cubies that we left aside.)

#### Step 2: Layer 1

 Cubies to sort in step 2 The Layer 1.

The goal: to place 3 out of 4 corners on the layer 1. (The corner Red-white-Blue remanins unsorted as explained in the 'note' above.) Even in this case corner are going to be moved from layer 1 to layer 3 and back to layer 1.

The strategy: every corner with a white face will be firsty placed on the yellow face, (regardless where the white sticker is.).
Then the corner is moved to the correct place on the layer 1.

Cases:

- Corner on layer 1: will be moved with a sledgehammer to layer 3.
The 1st rotation is the one that brings the corner from the layer 1 to layer 3
The 2nd rotation must be of the yellow face(To avoid effect on white cubies)
The 3rd rotation rollbacks the first.
The 4th rotation rollbacks the second.

- Corner on layer 3: will be moved to layer 1.
The 1st rotation is the one that brings the corner from the layer 3 to layer 2
The 2nd rotation is on the face that shares both the position of the moving corner before and after the first rotation.
The 3rd rotation rollbacks the first.
The 4th rotation rollbacks the second.
(For example: if the cubie is the Red-White-Green, located on the corner Red-Yellow-Green,
The 1st rotation is R -red face clockwise-;
The 2nd rotation is B' -green face anti clockwise-)
The 3rd rotation is R' -red face anticlockwise- rollbacks the first move;
The 4th rotation is B -green face clockwise- rollbacks the second move;

#### Step 3: Layer 2

 Cubies to sort in step 3 The Layer 2.

The goal: to place 3 out of 4 edges on the layer 2.

The strategy: the edges Orange-Blue; Orange-Green; Red_Green; will be firsty placed on the yellow face, (one cubie at a time and if not already there.).
Then the edge is moved to the correct place on the layer 2.
This time there must be an extra care to avoid effect on the corners on layer 1 running the 'sledgehammer'. That is obtained rotating the white face in the proper way. Refer to the running solver to see the detailed actions.

Cases:

- Edge on layer 2: will be moved with a 'sledgehammer' to layer 3 (regardless the orientation.).
Before the sledgehammer The 1st rotation is any one that brings the edge from the layer 2 to layer 3
The 2nd rotation must be of the yellow face (To avoid effect on white cubies) that brings the edge out of the scope of the next move.
The 3rd rotation rollbacks the first.
The 4th rotation rollbacks the second.

- Corner on layer 3: will be moved to layer 1.
The 1st rotation is the one that brings the corner from the layer 3 to layer 2
The 2nd rotation is on the face that shares both the position of the moving corner before and after the first rotation.
The 3rd rotation rollbacks the first.
The 4th rotation rollbacks the second.
(For example: if the cubie is the Red-White-Green, located on the corner Red-Yellow-Green,
The 1st rotation is R -red face clockwise-;
The 2nd rotation is B' -green face anti clockwise-)
The 3rd rotation is R' -red face anticlockwise- rollbacks the first move;
The 4th rotation is B -green face clockwise- rollbacks the second move;

#### Step 4.1: 2 edges

 Cubies to sort in step 4 The 2 edges in layer 3.

The Goal: placing just 2 out of 4 edges: the yellow-green and the orange-yellow.

#### Step 4.2: all edges

The Goal of this step is placing the 4 edges having the white sticker as in the cube above. Normally thatis done making before the so called daisy

 Cubies to sort in step 4 The whiLayer 2.

The Goal of this step is placing the 4 edges having the white sticker as in the cube above. Normally thatis done making before the so called daisy

#### Step 5: Last 2 corners

 Cubies to sort in step 3 The whiLayer 2.

The Goal of this step is placing the 4 edges having the white sticker as in the cube above. Normally thatis done making before the so called daisy