Unanswered Questions
10 questions with no upvoted or accepted answers
8
votes
0
answers
476
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 ...
3
votes
0
answers
264
views
I have a code in Python which should compute fully optimal moves in an endgame for Black and White player, but it seems that k is playing suboptimally
In this example "'fen': '7Q/8/8/6k1/2K5/8/8/8 w - -', 'moves_to_mate': 9"
should be "'fen': '7Q/8/8/6k1/2K5/8/8/8 w - -', 'moves_to_mate': 11"
according to Stock-Fish.
EDIT The ...
3
votes
0
answers
132
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 ...
2
votes
0
answers
368
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 ...
1
vote
0
answers
55
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 ...
1
vote
0
answers
479
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 ...
0
votes
1
answer
103
views
Delta pruning problem
I have a working 1500 blitz level bot but it works too slow in python using python chess library. I tried to optimize the functions in eval function but the best it can do at depth 4 is a second for ...
0
votes
0
answers
113
views
Python chess engine can't find checkmate
I just started to make this AI with python-chess library and using alpha beta pruning, it founds checkmate in leaf node and returns 10000, which is big enough to force the machine to choose. However ...
0
votes
0
answers
44
views
Numerical search for interesting lines with python-chess- engine optimization
I'm trying to write a numerical tool for searching interesting chess lines with python. In every node of a search tree (every node corresponds to a chess position) i need to get the engine evaluation ...
0
votes
0
answers
121
views
Resource for programming with Chessground
Does anyone have a resource or blog or article they can point that that goes into detail about how to use chessground from github?