Engine output: FEN string when blundering What is the best way to go through a database of my games and have the computer generate a FEN string as well as the next move any time I make an error greater than, say, a minor piece loss?

I've looked at SCID a bit and am not sure if I can do it there. I also doubt I could do it with stockfish on the command line. Pointers?
You may want to do it yourself. Please take a look at a PGN annotation project on Github:


https://github.com/fsmosca/chess-artist


The source code is easy to follow.


To get the engine evaluation, you have:



  engBestMove, engBestScore, complexityNumber, moveChanges, pvLine = self.GetSearchScoreBeforeMove(gameNode.board().fen(), side)



To check whether a move you play is a blunder:



  if abs(engBestScore) > 3.0:



To print FEN:



  fen = gameNode.board().fen()



To print FEN and whatever you want to the console, follow the implementation in:



  def WriteNotation(self, side, fmvn, sanMove, bookMove, posScore,
                        isGameOver, engMove, engScore, complexityNumber,
                        moveChanges, pvLine, threatMove):