glinscott / leela-chess

**MOVED TO https://github.com/LeelaChessZero/leela-chess ** A chess adaption of GCP's Leela Zero
http://lczero.org
GNU General Public License v3.0
760 stars 299 forks source link

LC0 misses 3 fold repetition and gets mated in 1 move #705

Closed KaiSkibbe closed 6 years ago

KaiSkibbe commented 6 years ago

At the end of the game LC0 (version from 14th june with standard settings) misses a 3 fold repetition. Instead of playing 52. ke2 with draw it plays 52. kc2 and opponent moves qc1 with mate. This issue is reproducible in analysis mode.

FEN: 5rk1/6p1/p3R2p/3Q4/P1p5/1nPPRP2/1P1K4/7q w - - 29 52

Lc0 1/2 00:00 2 125 0,00 Kd2-e2 2/2 00:00 11 500 0,00 Kd2-e2 2/3 00:00 12 545 0,00 Kd2-e2 2/5 00:00 590 10.925 0,00 Kd2-e2 2/6 00:00 850 13.076 +0,10 Kd2-c2 Dh1-c1+ 2/6 00:00 854 13.138 0,00 Kd2-e2 2/7 00:00 1.779 21.178 0,00 Kd2-e2 2/7 00:00 2.036 22.876 +0,15 Kd2-c2 Dh1-c1+ 2/8 00:00 3.145 27.831 +0,16 Kd2-c2 Dh1-c1+ 3/8 00:00 4.339 31.904 +0,15 Kd2-c2 Dh1-c1+ 3/9 00:00 12.223 44.126 +0,09 Kd2-c2 Dh1-c1+ 3/15 01:06 7.925.504 118.890 0,00 Kd2-c2 Dh1-c1+

Game:

[Event "test lco"] [Site "DESKTOP"] [Date "2018.06.18"] [Round "5"] [White "Lc0 1406"] [Black "opponent"] [ECO "B30"] [Result "0-1"]

  1. e4 c5 2. Nc3 Nc6 3. Nf3 e5 4. Bc4 Be7 5. d3 d6 6. O-O Nf6 7. Ng5 O-O 8. f4 a6 9. a4 h6 10. Nf3 exf4 11. Bxf4 Be6
  2. Nd5 Re8 13. c3 Na5 14. Ba2 Nxd5 15. Bxd5 Nc6 16. Qb3 Bf6 17. Bxe6 fxe6 18. Rad1 Qd7 19. h3 Rf8 20. Bg3 Rac8
  3. Rf2 Rf7 22. Rdf1 Rcf8 23. Re1 Be7 24. Re3 d5 25. exd5 exd5 26. Rfe2 Bd6 27. Bxd6 Qxd6 28. Re6 Qd8 29. Re1 Rxf3
  4. gxf3 Qg5+ 31. Kf2 c4 32. Qxb7 Qf4 33. R1e3 Qh2+ 34. Kf1 Qxh3+ 35. Ke1 Qh1+ 36. Kd2 Na5 37. Qxd5 Nb3+ 38. Ke2 Qg2+
  5. Ke1 Qg1+ 40. Ke2 Qh2+ 41. Kf1 Qh1+ 42. Kf2 Qh2+ 43. Kf1 Qh1+ 44. Kf2 Qh2+ 45. Ke1 Qh1+ 46. Ke2 Nc1+ 47. Kf2 Qh2+
  6. Kf1 Qh1+ 49. Kf2 Qh2+ 50. Ke1 Qh1+ 51. Kd2 Nb3+ 52. Kc2 Qc1# 0-1
KaiSkibbe commented 6 years ago

Just find new LC0 version of 19th june and this version does not play Kc2 so issue is already fixed.