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

Update the 'make moves' function to detect threefolds #87

Open
johndoknjas opened this issue Aug 23, 2024 · 0 comments · May be fixed by #89
Open

Update the 'make moves' function to detect threefolds #87

johndoknjas opened this issue Aug 23, 2024 · 0 comments · May be fixed by #89

Comments

@johndoknjas
Copy link

johndoknjas commented Aug 23, 2024

Currently, if the make_moves_from_current_position function is called with this:

sf.make_moves_from_current_position( ["g1f3", "g8f6", "f3g1", "f6g8", "g1f3", "g8f6", "f3g1", "f6g8", "g1f3", "g8f6", "f3g1", "f6g8", "g1f3"] )

Stockfish's evaluation will still favour White slightly (just as if it were evaluating the position after 1.Nf3), despite the fact that Black can draw by threefold with ...Nf6 here. This is because in make_moves_from_current_position, the moves are not all made together in one command, but rather in a loop with a new position fen... command each time.

Also, if there's a way to detect threefolds even after multiple calls to make_moves_from_current_position, that would be nice. But this would likely require move history.

@johndoknjas johndoknjas linked a pull request Aug 27, 2024 that will close this issue
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 a pull request may close this issue.

1 participant