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

puzzle maker best moves same as provided move #87

Open
GavPierce opened this issue Oct 19, 2022 · 2 comments
Open

puzzle maker best moves same as provided move #87

GavPierce opened this issue Oct 19, 2022 · 2 comments

Comments

@GavPierce
Copy link

Hi, really want to use this issue for a change to reach out since I had some questions on how your puzzle maker works. Really love your work. Going over the pgn of a game and comparing it to the best moves provided by the puzzle maker, it seems it provides moves that are no difference in evaluation and sometimes the same move that was made! Am I missing something?

@GavPierce
Copy link
Author

@fsmosca

@fsmosca
Copy link
Owner

fsmosca commented Oct 19, 2022

The algorithm is simple and is found in

def CreatePuzzle(self):

Generate chess position puzzle or test positions from a given pgn file.
        
Analyze position in the game from pgn file, record its pvmove and score
for the early part of analysis and final bestmove and bestscore after
the search. If pvmove and bestmove are not the same and score of
bestmove is higher than score at pvmove then save this as a test
position.

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