franciscoBSalgueiro / en-croissant

The Ultimate Chess Toolkit
https://encroissant.org
GNU General Public License v3.0
444 stars 50 forks source link

Local puzzle databases #47

Open franciscoBSalgueiro opened 8 months ago

franciscoBSalgueiro commented 8 months ago

I would like to implement this, however I can't find any standard way of representing puzzles.

I made the lichess puzzle db with a small script to convert from the specific format used by the lichess database to the SQL format accepted by en croissant.

@dav1312

dav1312 commented 8 months ago

You could accept csv files with a format similar or equal to Lichess, pgn files, and/or epd files Epd files are pretty popular for positions with a single move solution, not a sequence of moves. e.g. rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - bm e4 d4; am g4; For csv or pgn files, maybe the program should also know (ask the user) if the first move in the sequence is the solution or a move played by the opponent.