public void RotateTo(Orientation dest) { foreach (var act in RotateAction.GenerateActions(Orientation, dest)) { Rotate(act.dir); } }
public void RotateTo(Orientation dest) { foreach (var act in RotateAction.GenerateActions(Orientation, dest)) { if (act == RotateAction.Left) { RotateLeft(); } else { RotateRight(); } } }