Questions tagged [python]

Python is a general purpose and high level programming language. You can use Python for developing desktop GUI applications, websites and web applications.

5 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
0 answers
396 views

Stockfish position evaluation component terms in Python?

I saw the excellent Javascript-based guide to how Stockfish evaluates (non-NNUE). Is there a python version out there, perhaps using python-chess? What I am trying to do (in case you have other ...
Abhijit Mahabal's user avatar
3 votes
0 answers
77 views

Why this Python code for a simple endgame yields wrong results?

I have a Python code as below for a trivial (for a human) endgame, but I'm unable to make it output correct results. I'm seeking for a fully optimal play by both player: the stronger player should try ...
user2925716's user avatar
2 votes
0 answers
350 views

How to turn off Contempt in engine analysis?

I'm trying to analyze a game with the python-chess package, and for that I want to turn off the "Analysis Contempt" option in Stockfish. However, it seems it doesn't work, and I don't know ...
JohnnyQ's user avatar
  • 223
1 vote
0 answers
37 views

I have a simple code which has a bug at the particular place given below, but I'm unable to detect it exactly and fix it

I have asked a similar question elsewhere and I have detected where roughly is a problem. It is in this function which gets processed for node "1" only, see the output section below: (I'm ...
user2925716's user avatar
1 vote
0 answers
235 views

Is there a way to convert a .cbh file to PGN without a GUI?

I want to convert a .cbh file to PGN (or whatever format meta information (elo, player, score, etc) from which I can eventually convert to dataframe/json/anything easy to work with). The most popular ...
Samvel Avakyan's user avatar