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.53k stars 2.27k forks source link

Feature Request: puzzle theme dashboard for games by speed #12675

Open riccardocescon opened 1 year ago

riccardocescon commented 1 year ago

Is it possibile to have an api to get a user dashboard stats for his matches? Currently there Is an endpoint for the dashboard but Just for the puzzles statistics, Is there a chance to get the same endpoint for blitz/rapid/bullet...?

Puzzle dashboard: image

Is it possible to have an api for getting all those themes (and others that are still present on the puzzle dashboard but not shown on the website) for the matches mode with real players?

kraktus commented 1 year ago

I'm not sure I see the point, If a player performs badly in recognising sacrifice/forks/etc when solving puzzles I'd expect to perform badly in games too etc.

riccardocescon commented 1 year ago

Yeah but some players may play more games than puzzles, then this graph won't reflect their real statistics

kraktus commented 1 year ago

It's also not clear how we would calculate this performance since you can see the tactic and still lose, or miss it and win anyway.

riccardocescon commented 1 year ago

Well, i think it should reflect how many tactics you see and play and giving a 'weights' for the match result, is that idea bad?

kraktus commented 1 year ago

Currently puzzles are generated by analysing the full game with SF to extract the tactics, then the tactics rating is determined by players.

I see two issues with the approach you mentioned:

riccardocescon commented 1 year ago

Oh i see But aren't the puzzles some moves of real games? isn't then a way to get the difficulty of a tactic from a game?