brianch / offline-chess-puzzles

Tool to view and solve puzzles from the lichess puzzle database
MIT License
115 stars 16 forks source link

Adding Popularity Slider #23

Closed cyrillkuettel closed 3 months ago

cyrillkuettel commented 3 months ago

Hi brianch

First of all thank you for this great project and your efforts at developing it. The csv contains a field popularity. Have you considered adding a slider for this?

brianch commented 3 months ago

Hello! And thanks :)

My first thought was to have a low minimum value (just to exclude things that were mostly down-voted in lichess) in the config file (so it's changeable, but not exposed in the UI), since it's not something I imagine that people would tweak much. But yeah, it could also be added as a slider.

I guess I should take a look at the distribution of values to have an idea how it looks, so there's more info to make a decision.

cyrillkuettel commented 3 months ago

I was just thinking of setting popularity=0.99 for example to get only the best of the best;) But yeah config files makes sense I think as this is probably a niche-request

brianch commented 3 months ago

Ok, might as well add it as a slider indeed, there's enough variation and a large amount of puzzles especially around 20 to 100 popularity. (Popularity goes from -100 to 100)

The most popular ones are also the most played, perhaps because lichess recommends them more.

Disclaimer: I don't understand anything about statistics 😅

plot

plot-nbplays

By the way, with this I also found out that apparently there's a few puzzles with more than 3000 rating now, last time I checked there were none, I will adjust the slider in the next release.

brianch commented 3 months ago

Implemented in a74d26904f04f5c264f1b4ed387c9eff961e8433