jalpp / Chesslise

Open source Chess Discord Bot
MIT License
18 stars 8 forks source link

Feat: Query puzzles based on rating, themes from Lichess puzzles DB #66

Closed jalpp closed 2 months ago

jalpp commented 4 months ago

Is your feature request related to a problem? Please describe. the puzzles in /puzzle are random and are not able to query the puzzle by rating or themes, let's say a user wants to do a puzzle by checkmate or 1800 rated puzzle this is not possible currently

Describe the solution you'd like A clear and concise description of what you want to happen. /puzzle should have mode of Lichess puzzle by rating, Lichess puzzle by theme or random Lichess puzzle

Describe alternatives you've considered No alternatives

Additional context The code for rendering puzzles is already present in abstraction and ChessUtil, you can also look at how other puzzle components like Daily puzzle are done in the code.

The Lichess puzzle database is here, ChessLise should be able to query https://database.lichess.org/ in CSV format

from there, it should be able to render the puzzles and show them to the user

making the puzzle trigger solution module is (optional) but also needed so if you're down for the challenge this is great also.

opening this as the good first issue, because everything is already there, just querying the db is missing

jalpp commented 2 months ago

6909a015782a41c48a0c75a984210fb7f5d7d51d