private static void RotateFaceMiddleLayer(Cube side, int times, sbyte face) { Debug.Assert(times < 4); Debug.Assert(face < 6); side.MapFrontFrom(face); RotateFrontMiddleLayer(side, times); side.MapFrontTo(face); }