lichess-org / lila

♞ lichess.org: the forever free, adless and open source chess server ♞
https://lichess.org
GNU Affero General Public License v3.0
15.09k stars 2.23k forks source link

Margin for correct puzzle answer (multiple correct answers) #4588

Closed vitogit closed 6 years ago

vitogit commented 6 years ago

It seems that some puzzles could have 2 correct answers with a margin too small to be important. Like I read in this post https://www.reddit.com/r/chess/comments/9brplg/questionable_lichess_puzzle_analysis_in_comments/

Could a puzzle takes 2 or more correct answers or it will require some code change? Also when generating the puzzles it could have a small margin (like 0.05 centipawns) to accept the correct answer.

niklasf commented 6 years ago

Generally Lichess already supports multiple solutions in puzzles. Also the latest batch of puzzles should only have unique solutions.

But in some rare cases the automatic analysis and puzzle selection can go wrong (for example Stockfish briefly changed its mind). Then we have to manually remove them. NoJoke commtented on the reddit thread and already did that.

vitogit commented 6 years ago

Thanks @niklasf do you still use https://github.com/clarkerubber/Python-Puzzle-Creator for puzzle generation on lichess? I made a puzzle generator from your own game based on that https://github.com/vitogit/pgn-tactics-generator I just want to know if you are using something new or better, because the lichess tactics are pretty good.

niklasf commented 6 years ago

Intresting, I'll check it out. It's been a while since we generated any new puzzles and yes, that was using Clarkey's generator.

vitogit commented 6 years ago

Nevermind I just saw nojoke commenting that lichess still use https://github.com/clarkerubber/Python-Puzzle-Creator -we wrote at the same time. thanks @niklasf