ArcticXWolf / AXWChessbot

A simple chess engine written in Golang.
https://lichess.org/@/AXWChessBot
5 stars 0 forks source link

Missing mate in 1 against it #6

Closed rwbc closed 3 years ago

rwbc commented 3 years ago

With 35. Bf2 AXW 0.0.8 allowed a mate in one, funnily Eden made a mate in 2 out of it. Even when the move is played with just depth 3 (my slow hardware didn't help either) it should figure it out.

(I guess though, adding one or two plies by speeding it up in the early stage would help it enormously)

[Event "My Tournament"]
[Site "RWBC-CAPPUCCINO Win7U64 Q8200 2.33Ghz + Nvidia GT 710"]
[Date "2021.04.22"]
[Round "2"]
[White "AXWChess_008-64"]
[Black "Eden_0013JA"]
[Result "0-1"]
[ECO "A09"]
[GameDuration "00:03:51"]
[GameEndTime "2021-04-22T09:21:40.526 Mitteleuropõische Sommerzeit"]
[GameStartTime "2021-04-22T09:17:49.520 Mitteleuropõische Sommerzeit"]
[Opening "Reti"]
[PlyCount "72"]
[TimeControl "40/120"]
[Variation "Advance Variation"]

1. Nf3 {book} d5 {book} 2. c4 {book} d4 {book} 3. a3 {book} a5 {book}
4. d3 {+0.13/4 3.15s} Qd6 {-0.10/5 2.78s} 5. e3 {+0.22/3 3.15s}
dxe3 {-0.18/5 2.75s} 6. Bxe3 {+0.32/3 3.15s} Bf5 {-0.37/4 2.76s}
7. Nd4 {+0.57/3 3.15s} Bc8 {-0.31/5 2.77s} 8. Nb5 {+0.61/3 3.15s}
Qd8 {-0.50/4 2.79s} 9. Bf4 {+0.71/4 3.15s} Na6 {-0.34/5 2.81s}
10. Be2 {+0.57/4 3.15s} c6 {-0.46/5 2.81s} 11. N5c3 {+0.66/4 3.15s}
e5 {-1.15/5 2.84s} 12. Bxe5 {+1.34/3 3.15s} f6 {-1.55/5 2.84s}
13. Bg3 {+1.40/3 3.15s} Bf5 {-2.42/5 2.86s} 14. O-O {+1.57/3 3.15s}
Bc5 {-2.49/4 2.87s} 15. Ne4 {+1.65/3 3.15s} Be7 {-2.57/4 3.00s}
16. Qb3 {+1.69/3 3.15s} Ra7 {-2.41/5 3.01s} 17. Nbc3 {+1.72/3 3.15s}
Nh6 {-2.44/4 2.91s} 18. Bh5+ {+1.56/3 3.15s} g6 {-1.61/5 2.93s}
19. Be2 {+1.48/3 3.15s} O-O {-1.44/5 2.94s} 20. Rae1 {+1.40/3 3.15s}
Nc5 {-1.37/5 2.96s} 21. Qc2 {+1.37/3 3.15s} Re8 {-1.29/5 3.11s}
22. Bf4 {+1.28/3 3.15s} Ng4 {-1.49/5 3.00s} 23. h3 {+1.22/3 3.15s}
Ne5 {-1.69/5 3.01s} 24. Be3 {+1.34/2 3.15s} Ned7 {-1.69/4 3.03s}
25. g4 {+1.33/3 3.15s} Bxe4 {-1.57/5 3.20s} 26. dxe4 {+1.68/3 3.17s}
Qc7 {-3.65/5 3.09s} 27. f4 {+1.67/3 3.15s} Rd8 {-1.48/4 3.12s}
28. g5 {+2.03/3 3.15s} fxg5 {-0.79/4 3.14s} 29. Rd1 {+1.17/3 3.15s}
Kh8 {-0.79/4 3.30s} 30. Bd4+ {+1.40/3 3.15s} Kg8 {-0.79/4 3.21s}
31. fxg5 {+1.29/3 3.15s} Qg3+ {+0.59/4 3.24s} 32. Kh1 {+0.15/4 3.15s}
Qxh3+ {+0.59/4 3.29s} 33. Kg1 {+0.03/4 3.15s} Qg3+ {0.00/5 3.32s}
34. Kh1 {-0.04/4 3.16s} Bd6 {+0.48/4 3.38s} 35. Bf2 {+1.01/3 3.15s}
Qh3+ {+M3/2 0.059s} 36. Kg1 {-M38/4 3.16s} Qh2# {+M1/2 0.064s, Black mates} 0-1
ArcticXWolf commented 3 years ago

Thanks for this issue and example! I had some problems before with missed mates and strange moves, but couldnt reproduce it properly. Now thanks to this example I was able to debug it!

It was a problem with the quiescence search, I had some errors concerning the evaluation of a Checkmate.

v0.0.9 fixes this :)