Esempio n. 1
0
    //Runs commands from the command line
    public void RunCommand()
    {
        string command = commandLine.text;

        switch (command)
        {
        case "Solve":
            cube.Solve();
            visualizer.UpdateVisualization();
            break;

        case "UpdateVisual":
            visualizer.UpdateVisualization();
            break;

        default:
            cube.RotateFromNotation(command);
            break;
        }
    }