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

Fix uci isready, ucinewgame #37

Open
znxftw opened this issue Dec 13, 2024 · 1 comment
Open

Fix uci isready, ucinewgame #37

znxftw opened this issue Dec 13, 2024 · 1 comment
Labels
debt Technical Debt priority-0 To be completed first, before priority-1 items

Comments

@znxftw
Copy link
Owner

znxftw commented Dec 13, 2024

The uci command isready is supposed to return readyok once the engine has finished initializing.
This was initially trivial, the number of initializations / clearing of memory was not significant.
If we want to make our engine better we need to add some extra checks - Transposition Tables should be initialized, move history should be cleared (possibly force GC?) and all static members need to be initialized.

Return readyok only once everything is done.

Abstract out proper ways to know "are we done initializing" so that future code coming in can easily say "I'm not done yet" instead of rewriting the entire isready logic everytime.

ucinewgame also needs to be revisited - clear everything, make sure this also unsets readyok until it's done

@znxftw
Copy link
Owner Author

znxftw commented Dec 13, 2024

Relates to #12

@znxftw znxftw added priority-0 To be completed first, before priority-1 items debt Technical Debt labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt Technical Debt priority-0 To be completed first, before priority-1 items
Projects
None yet
Development

No branches or pull requests

1 participant