Skip to content

fix: remove "duplicated" board positions from Book.txt #39

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
wants to merge 1 commit into
base: Chess-V2-UCI
Choose a base branch
from

Conversation

eugenioenko
Copy link

@eugenioenko eugenioenko commented Jul 5, 2025

Motivation
The Book.txt seems to be agnostic to en-passant square. For example, the second entry in the book is

rnbqkbnr/pppppppp/8/8/3P4/8/PPP1PPPP/RNBQKBNR b KQkq -

And it technically it should be

rnbqkbnr/pppppppp/8/8/3P4/8/PPP1PPPP/RNBQKBNR b KQkq d3

Because in openings, it's mostly impossible to take advantage of the en-passant square, it's a good trade-off to ignore it. That does make sense.

The Issue
There are two positions in the book that given the en-passant square is ignored are the same positions and duplicates of each other.

PR Changes
This PR updates Book.txt to remove those two "duplicate" positions .

Note
I found that they are duplicates when creating a json version of the openings and using a modified zobrist hash that does not consider the en-passant square. AFAIK those are the only two "duplicate" entries

It might be the case that maybe the non en-passant position needs to be removed, but given that the 2nd, 4th and other entries are not setting en-passant square in the fen notation, it seems to be a good option to remove the en-passant one .

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 this pull request may close these issues.

1 participant