Exemple #1
0
 /// <summary> Adds n move to the solution and executes it on the Rubik </summary>
 /// <param name="layer">Defines the layer to be rotated</param>
 /// <param name="direction">Defines the direction of the rotation</param>
 protected void SolverMove(CubeFlag layer, bool direction)
 {
     Rubik.RotateLayerFromCubeFlag(layer, direction);
     Algorithm.Moves.Add(new LayerMove(layer, direction, false));
     _movesOfStep.Add(new LayerMove(layer, direction, false));
 }