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

3fold repetition: Fix generation #11

Merged
merged 2 commits into from Sep 30, 2021
Merged

Conversation

kraktus
Copy link
Contributor

@kraktus kraktus commented Sep 30, 2021

#9 Uses fen method which includes the move number, so positions are never equals.

Also close https://github.com/ornicar/lichess-puzzler/issues/8 too

Some tests are failing test_puzzle_4, test_puzzle_15 randomly. test_puzzle_6 always fails for unknown reasons. These failing tests are an issue unrelated to this change though.

ornicar#9 Uses `fen` method which includes the move number, so positions are never equals.

Found thanks to https://lichess.org/forum/lichess-feedback/cooked--in-2-puzzle. Run against the source game of the puzzle and v47 generate the faulty puzzle while v48 (this one) does not.
@ornicar ornicar merged commit ab3dec3 into ornicar:master Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants