Skip to content

Different openings for white and black #1107

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

Open
CallOn84 opened this issue May 10, 2025 · 5 comments
Open

Different openings for white and black #1107

CallOn84 opened this issue May 10, 2025 · 5 comments

Comments

@CallOn84
Copy link

Hi developers.

I was wondering if it's possible to have different opening books for the white and black sides?

@MarkZH
Copy link
Collaborator

MarkZH commented May 11, 2025

How would these books be different? Wouldn't any opening book have the best moves for both sides?

@CallOn84
Copy link
Author

How would these books be different? Wouldn't any opening book have the best moves for both sides?

This is just my experience using the polyglot book feature. I don't want to set the move pick to be the best moves, as doing so would mean that there's not enough variety when the bot is playing. However, the weight_random and min_weight don't always work particularly well because the weights vary depending on the position hash. Furthermore, the best move in an opening doesn't necessarily mean the bot prefers it.

@AttackingOrDefending
Copy link
Member

Would adding a normalization option to the opening books section help? For now, I'm thinking something like:

  • No normalization (current)
  • Make the sum of all weights equal to 100 (so new_weight = weight / sum(weights) * 100)
  • Make the largest weight equal to 100 (so new_weight = weight / max(weights) * 100)

This should make using the min_weight option easier.

@CallOn84
Copy link
Author

That might be good. I can test it with Elite Leela if you want to see how it performs

@MarkZH
Copy link
Collaborator

MarkZH commented May 29, 2025

Let us know how the latest change works for you.

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

3 participants