Closed ChandlerKenworthy closed 9 months ago
It seems that test was bugged. I have now re-tested and I am consistent up to and including depth 2. Depth 3 now returns 1211797 (correct value is 8902). Which again is way too many but a little more under control.
There was a bug in undo move which wasn't correctly over-writing bit boards. I have fixed this and now have this:
Number of generated moves after depth 3 = 245294 (correct = 8902).
More problems in undo move fixed:
Number of generated moves after depth 3 = 134891 (correct = 8902)
Number of generated moves after depth 3 = 9058 (correct = 8902)
This issue has now been resolved up-to perft depth 3 in commit a11198799aa44e58007c9da78448340d3dd42cf5.
Running tests on the number of generated moves after certain depth - not consistent with values from leading engines. See excerpt below from running the move generation test.