public void Rotate(CubeSlice slice, MoveDirection direction = MoveDirection.Single) { var movement = MovementRepository.Get(slice, direction) ?? throw new Exception($"Unknown rotation: {slice} {direction}"); DoRotation(movement); }
private void Rotate(string identifier) { var movement = MovementRepository.Get(identifier) ?? throw new Exception($"Unknown rotation: {identifier}"); DoRotation(movement); }