Non-Attacking Mazes

Make legal chess moves with one piece at a time to get from the starting position to the ending position in the specified number of moves. At no time may any chess piece attack any other chess piece. Here's an example:


8 moves
The solution:


1.
10 moves


2.
11 moves

3.
12 moves

4.
13 moves

5.
14 moves

6.
15 moves

7.
16 moves

8.
17 moves

9.
18 moves

10.
19 moves

11.
20 moves

12.
21 moves

13.
22 moves

14.
23 moves

15.
24 moves

16.
25 moves

17.
26 moves

18.
27 moves

19.
28 moves

20.
31 moves