Handling multiple answers
pnodet opened this issue · comments
Hi guys!
I am building a quick puzzle trainer for fun. github.com/chesspecker
How does Lichess puzzles handles multiple answers for examples multiple mate in one?
Here is an example:
{ PuzzleId: "GKhUo", FEN: "r5k1/p4pp1/7p/2p5/NpP1PB2/1B3pq1/PP4bb/R4Q1K w - - 6 28", Moves: "f1g2 f3g2", Rating: 1860, RatingDeviation: 257, Popularity: -100, NbPlays: 7, Themes: Array, GameUrl : "https://lichess.org/xuPt7fwP#55", }
It's checked client-side I think
I think so too but I was wondering how since Moves only contains one solution.
I found a quick way via this commit chesspecker/frontend@2017a6d
But it only works if a puzzle with multiple solutions can only be mate in 1 solutions.
I guess it's the case but not sure?
It is the case 👍
Okay thanks a lot, closing this issue.