likeawizard / tofiks

UCI chess engine written in Go
GNU General Public License v3.0
19 stars 0 forks source link

Bug: invalid pv output #32

Closed likeawizard closed 1 year ago

likeawizard commented 1 year ago

position fen 8/7k/8/3p4/8/1p2P3/1P2P3/7K w - - 0 1

info depth 24 score cp 107 nodes 104846960 nps 707655 time 148161 hashfull 969 pv h1g2 h7g6 g2f3 g6f5 e3e4 d5e4 f3g3 f5e6 g3h4 e6d6 h4g4 d6c6 g4f4 c6d5 e2e3 d5c5 f4e5 c5b5 f5e5 b5c5 e5f5 c5b5

white move f4e5 followed by f5e5 is not possible.

PGN: [[Variant "From Position"] [FEN "8/7k/8/3p4/8/1p2P3/1P2P3/7K w - - 0 1"]

  1. Kg2 Kg6 2. Kf3 Kf5 3. e4+ dxe4+ 4. Kg3 Ke6 5. Kh4 Kd6 6. Kg4 Kc6 7. Kf4 Kd5 8. e3 Kc5 9. Ke5 Kb5
likeawizard commented 1 year ago

Various bug fixes and test suite ensures validity of output pv. On reflection only the PV output was bugged. Inner engine workings seemed to be intact.