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

Polyglot opening book played a draw #77

Open
jjoshua2 opened this issue Sep 9, 2018 · 2 comments
Open

Polyglot opening book played a draw #77

jjoshua2 opened this issue Sep 9, 2018 · 2 comments

Comments

@jjoshua2
Copy link

jjoshua2 commented Sep 9, 2018

It would be good to at least have not option to not allow book to play a draw. Polyglot doesn't know what move history is or even move number, only position, so its possible for it to sometimes be a draw. I had a 14 move draw moving bishop between c1 and g5 one to many times when Knight attacked it. I would rather be dropped out of book than get a draw in book as white.
Thanks!

@MichaelB7
Copy link

Make a new book. It’s not the engine fault.

@jjoshua2
Copy link
Author

jjoshua2 commented Sep 9, 2018

That is possible, but it works in asmfish. See what they do:

if BestBookMove = true
   if length(movelist) > 1
       filter out moves from movelist that lead to repetitions
       filter out moves from movelist without highest weight
   end if
else
   filter out moves from movelist that lead to repetitions
end if

I'm not sure how to fix it because the best move is to put your bishop back if Knight attacks it, and if knight doesn't attack it's best to keep your bishop out. So ideally you try it and see if he does that, and then if he does you bring bishop back and try something else. But its not possible to do this with only polyglot. And there is no other good spot for bishop besides brining back, so any filtering would have to look at several moves in advance... Since polyglot does not know move number or history its not a good place to solve this problem...

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