andrewphoy / chess-replayer

Javascript chess replayer implemented as a jQuery plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replayer freezes on ambiguous input that isn't actually ambiguous

jxu opened this issue · comments

commented

On move 11, the replayer doesn't realize that Nd4 is actually correct since N3d4 is impossible (puts king in check)

[title "Stockfish 15 NNUE at depth 69"]
[fen "8/8/7p/3KNN1k/2p4p/8/3P2p1/8 w - - 0 1"]


1. Ng7+ Kg5 2. Nf3+ Kg4 3. Ke4 h3 4. Nf5 g1=Q 5. Nxg1 h2 6. Nxh6+ Kh5 7. Nf3 h1=Q 8. Nf5 Kg4 9. Ne3+ Kg3 10. Nf5+ Kf2 11. Nd4 Qh7+ 12. Kd5 Qc7 13. Ne5 Qa5+ 14. Ke4 Qa2 15. Ng4+ Ke1 16. Nf3+ Ke2 17. Nge5 Qa6 18. Kd5 Qb5+ 19. Kd4 Kf2 20. Ke4 Qb7+ 21. Kd4 Kg3 22. Kxc4 Kf4 23. Kc5 Qa6 24. Kd5 Qa5+ 25. Kd6 Qd8+ 26. Kc5 Ke4 27. d3+ Kf4 28. Kc6 Qf6+ 29. Kd5 Qb6 30. d4 Qb3+ 31. Kd6 Qa3+ 32. Ke6 Qa6+ 33. Kd5 Qb6 34. Nh4 Qd8+ 35. Ke6 Qxd4