iamjarret / pystockfish

Implements an easy-to-use Engine class to integrates the Stockfish chess engine with Python
GNU General Public License v3.0
30 stars 13 forks source link

Can this module return the evaluation estimation of a position? #10

Open ymmx opened 8 years ago

ymmx commented 8 years ago

I'm wondering if this module can assess a position. For instance, we set a position from a FEN string. And the analysis by stockfish return +10.2 if white is wining.

It is obviously the case from the stockfish engine itself, but I don't see a way to get this assessment from this Pystockfish wrapper module.

nice job by the way.

iamjarret commented 8 years ago

Hi ymmx, thanks for your positive feedback! Yes, this is there but retrievable only as "centipawns" from the computer's perspective. If the output is "score cp -40" than the opponent has a 0.4 advantage. Support on Stockfish's output here: http://support.stockfishchess.org/discussions/questions/18-board-position-evaluation