Replies: 1 comment
-
For example, you could use >>> import chess.engine
>>> pov_score = chess.engine.PovScore(chess.engine.Cp(+18), chess.WHITE)
>>> pov_score
PovScore(Cp(+18), WHITE)
>>> pov_score.white()
Cp(+18)
>>> str(pov_score.white()) # Get a nice string representation for humans
'+18'
>>> pov_score = chess.engine.PovScore(chess.engine.Mate(3), chess.BLACK)
>>> pov_score
PovScore(Mate(+3), BLACK)
>>> pov_score.white()
Mate(-3)
>>> str(pov_score.white())
'#-3' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
generated by python-chess module
generated by stockfish python module
nice to make the chess engine analysis more human readable like stockfish python module
also, not sure about :
cp = centipawn ??
povscore (is it point of view ? )
and
pv (is it pricinipal variation or predicted variation)
ref
https://www.chessprogramming.org/Principal_Variation
https://www.chessprogramming.org/Extended_Position_Description#Opcode_mnemonics
thanks and best regards
Beta Was this translation helpful? Give feedback.
All reactions