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

Board.status unnecessarily calculates all legal moves #63

Open
AlexanderHarrison opened this issue Jul 25, 2021 · 0 comments · May be fixed by #64
Open

Board.status unnecessarily calculates all legal moves #63

AlexanderHarrison opened this issue Jul 25, 2021 · 0 comments · May be fixed by #64

Comments

@AlexanderHarrison
Copy link

AlexanderHarrison commented Jul 25, 2021

Since Board.status only needs to check if there are legal moves or not, it is slow and pointless to calculate all legal moves, especially since this would often be in hot code areas (search/eval functions).

Perf says Board.status takes around a third of my engine's running time, so this is an issue.

Edit: Board.status takes around 20% of my engine's running time with this change.

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

Successfully merging a pull request may close this issue.

1 participant