Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perft give false results #207

Open
Carbecq opened this issue Nov 2, 2022 · 1 comment
Open

Perft give false results #207

Carbecq opened this issue Nov 2, 2022 · 1 comment

Comments

@Carbecq
Copy link

Carbecq commented Nov 2, 2022

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants