Create two valid Chess games (A and B) with the minimum number of moves (you will sum the number of moves of A and B) such that overlapping the two games creates a valid chess position.
The following rule will be considered.
- There can't be a piece on a square on game B if there is also a piece on this same square in game A, and vice-versa.
- The overlapped game will only consider White king of game A and Black king of game B (to prevent having 4 kings).
Example of a solution with 45 moves
Game A, 20 moves
1. d4 d5 2. e4 dxe4 3. Bd3 exd3 4. Qh5 Nf6 5. Qxf7+ Kxf7 6. Nf3 Ng4 7. Ne5+ Ke6 8. Bh6 gxh6 9. f3 Nf2 10. Kxf2 Nc6 11. cxd3 Qxd4+ 12. Kg3 Na5 13. Nf7 Kxf7 14. b4 Qxb4 15. f4 Qxf4+ 16. Kxf4 c5 17. Nc3 Bh3 18. Nb5 Rc8 19. Nxa7 Nb3 20. Nxc8 Na5
Game B, 25 moves
1. a4 a5 2. Ra3 Na6 3. h4 h5 4. Nf3 f5 5. d4 b5 6. g4 Bb7 7. Bg2 c5 8. b4 Qb6 9. dxc5 Qxc5 10. Qd6 Qxf2+ 11. Kd2 Bxf3 12. Qxa6 Qxh4 13. Qxa8+ Kf7 14. Bxf3 Qxh1 15. Bb2 axb4 16. axb5 Nf6 17. gxf5 g5 18. fxg6+ Kxg6 19. Qxf8 Qxb1 20. Qxf6+ Kh7 21. Bxh5 Qxb2 22. Rb3 Qxb3 23. cxb3 exf6 24. Bg6+ Kxg6 25. e4 Rg8