2

I've got two questions. I'm wondering if:

  1. It is possible to search for certain positions in a database (like Chessbase) and display all of them in a text file.
  2. To be able to assign a score to each position automatically with a chess engine.

I've got some notions of programming but I wouldn't mind getting some ideas on how to write such a program.

2 Answers 2

1
  1. Use pgn-extract:

... FEN positional matches with -t ...

  1. Use ChessArtist. It supports any UCI chess engine, including Stockfish and Komodo.
5
  • It looks good. I just wanted to know if it is possible to deal with FEN instead of PGNs for both?
    – A. Napster
    Commented Mar 31, 2017 at 4:37
  • @A.Napster My solution is not perfect. pgn-extract doesn't hook up with chess engine, and chess artist doesn't search. But there is nothing stopping you incorporating both in a script.
    – SmallChess
    Commented Mar 31, 2017 at 4:41
  • I know. my question is whether both can deal with or output FEN
    – A. Napster
    Commented Mar 31, 2017 at 4:49
  • @A.Napster pgn-extract can deal with FEN by itself. ChessArtist doesn't handle FEN, but it's easy to add.
    – SmallChess
    Commented Mar 31, 2017 at 4:51
  • Just a thumbs up to say that I managed to what I wanted with the programs you suggested. The only modification was writing the FEN as EPD then analysing with ChessArtist. Thanks again for your help.
    – A. Napster
    Commented Aug 24, 2017 at 10:16
2

I am the author of pgn-extract and, as has been pointed out, it doesn't hook up directly with a chess engine. However, if you would like to try out something I recently wrote that does interface with an engine then there is a description of a UCI-based analyser that can output annotated PGN via its --annotatePGN option. It is still a little experimental and you will need to compile from source but it might provide something close to what you are looking for.

2
  • Thanks a lot for your help and program. However I've already managed to do the job with pgn-extract and ChessArtist. First I extract FEN with pgn-extract , write it in an epd format file then I analyse them with ChessArtist using Stockfish. It doesn't look pretty but it works like a charm.
    – A. Napster
    Commented Aug 24, 2017 at 10:09
  • I am glad you have a solution.
    – kentdjb
    Commented Aug 25, 2017 at 6:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.