justNo4b / Drofa

UCI chess engine
GNU General Public License v3.0
46 stars 7 forks source link

Perft give false results #207

Open Carbecq opened 2 years ago

Carbecq commented 2 years ago

Hi I tried to do a perft test, but I found that the results are false This is what I found for example at depth 4

a2a3: 8457 b2b3: 9347 c2c3: 9347 d2d3: 11961 e2e3: 13280 f2f3: 8457 g2g3: 9347 h2h3: 8457 a2a4: 9329 b2b4: 9332 c2c4: 9818 d2d4: 12437 e2e4: 13308 f2f4: 8929 g2g4: 9328 h2h4: 9329 b1a3: 8885 b1c3: 9757 g1f3: 9754 g1h3: 8883 Moves 197,742

The total move should be 197,281. Unless you count moves with another way ?

I like your code, its very well documented. Im learning a lot with it. Thanks Carbec

justNo4b commented 1 year ago

Hello. Thank you for your kind comment. I never tested if perft actually works since forking ShallowBlue, and I am pretty sure I broken it in some way when I was re-writing move generation. Currently I dont have much time to work on the engine, so I keep this issue in mind, but likely wont fix this in the foreseeable future.