1

I am looking for a way to use Stockfish for an automated analysis of games which I have in pgn format. Similar to Fritz/Chessbase's Blunder Check function I would like Stockfish (or any other UCI engine) to "simply" go through each position of each game in the pgn-file (convert to FENs?), let Stockfish run for a fixed amount of seconds and then return the evaluation and depth reached. Maybe later I would like to add things like node count or the eval in each depth reached. Finally, the program should format the output to a human readable format.

Maybe there is a similar program already out there which I could use as a template but if not what would be the easiest way to get started. I have limited programming skills in Python and VB.

8
  • "I would like Stockfish... to "simply" go through each position of each game in the pgn-file..., let Stockfish run for a fixed amount of seconds and then return the evaluation and depth reached" - There are already programs which do this much. Did you want to program your own, or would you be happy with just this?
    – D M
    Commented Jun 15, 2020 at 11:32
  • I would like to add custom elements like node count and evals at different depths - all info that SF returns. If there is an open source program that does some parts then I could add those features perhaps. But please let me know any programs that can do it. I only know of Chessbase and Aquarium.
    – Gecko
    Commented Jun 15, 2020 at 12:04
  • Reading your question makes me wonder - you are already using Fritz/Chessbase and for some reason don't like those products - or you know they can do it but you don't want to pay and ask someone to make it for free? Because obviously you can do what you ask for 100% using Chessbase 15... not sure about other versions and Fritz interface - possible that it would work too - someone else could confirm
    – Drako
    Commented Jun 16, 2020 at 5:41
  • @Drako Are you saying that if I give to CB15 for instance a PGN with 1000 FENs representing 1000 positions, there's a way to tell CB15 to output (with a chosen engine, let's say our default kibitzer) somewhere (in the PGN, by completing it, or somewhere else) the list of evaluations (how to parametrize them ?) of these positions ?
    – Olórin
    Commented Jun 16, 2020 at 11:15
  • 1
    Stockfish can analyze a PGN file easily. Why isn't that enough? Commented Jun 18, 2020 at 12:47

1 Answer 1

2

There is a library for Python (import chess.engine) that allows you to use an engine (like Stockfish) to analyse games in a PGN file.

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.