This is a follow-up question to the good old puzzle Switch The Knights:
Envoys from two rival kingdoms meet face-to-face in a very narrow corridor of a neutral castle. The corridor is a grid exactly 4 squares long and 3 squares wide.
Turning back is dishonorable for both sides. To pass each other peacefully, they must completely swap their starting positions.
The Setup:
Top Row (North Gate): Black Knight, Black Rook, Black Knight
Bottom Row (South Gate): White Knight, White Rook, White Knight
The Rules:
- Pieces move exactly as they do in normal chess.
- No capturing is allowed. A piece can only move to an empty square.
- Any piece can be moved on any turn.
Questions:
- What is the minimum number of moves needed to completely swap the Black and White pieces?
- If the middle pieces were Queens instead of Rooks, would the swap require fewer moves? Why or why not?


