I implemented a partial generator based on the idea in my previous comment. It was quite a fun challenge.
At each step it determines the reachable squares for the given piece, that are not occupied or block past moves, and chooses one at random, then it computes the shortest path to that square.
This procedure is repeated until there are no squares available.
Only pawns, knights and kings are supported so far.
https://gist.github.com/oessessnex/bc617095675da44f857216f98...
Great game btw :)