So I was just messing around with the stockfish library and am converting the moves to a fgn text format and errored parsing the move Right now every ...
So I was just messing around with the stockfish library and am converting the moves to a fgn text format and errored parsing the move Right now every ...
I am making a chess game in Python with PyGame using the python-chess library. When I implement my program in PyGame the window only shows the empty ...
I've been working on project in python chess playing with lichess opening explorer API. I have succeeded in doing all the hard work and finally got th ...
I'm playing around with some python chess code, its for fun. However i have difficulty in using the board.attackers function. I'm not sure what it acc ...
I’m making a chess game with python 3.10.7 in pycharm and using pygame 2.1.3. This is some of my code in my main() function. I’m trying to get the pos ...
A python-chess board can return an ascii representation of the board with dots as empty squares based on this part of its source code: Let's say we ...
I have used the post (Printing individual moves with the python-chess library) to obtain the individual moves and display image of the chess board. Se ...
I'm using the python-chess module to write a chess engine. Here's the code that I'm struggling with, for context: I had to add the string_moves bec ...
The code below illustrates a buffer which displays with pygame.image.frombuffer but not with tkinter PhotoImage I know this is as a result of somet ...
I read a pgn file, extract some information and then write my results back to a file. Why does the python process Way more RAM than my variables combi ...
I'm having trouble with the engine encapsulation of python-chess, I would like to use the Stockfish function top = stockfish.get_top_moves(5) but it s ...
Give the position of 8 queens on the chessboard. Print YES if at least one pair of queens hit each other. If not print out NO. so here's my code but ...
I modified the Goratschin Chess code so that it can run 8 chess engines at the same time, and it works; however in the code the options management of ...
Saw this style of board representations and was wondering what kind of style this is? Bit-board or 0x88? Im newer to programming and even newer to Che ...
I am creating a chessboard to display my NQueensProblem search. I have made a grid and filled in the cells with colors. However, I can't fill the posi ...
Using stockfish for a chess program. It gives the same moves every time for any position. It even opens with the same moves. I'm using the python-che ...
So basically, I just want to load chess engine which is in the same folder with script _, engine = await chess.engine.popen_uci('./engine') What is ...
I import chess in python and I finished everything in the project but when I click run I find a very weird error in file __init__.py the error ...
When I test my code with the position r1bqkbr1/pp2pppp/2n1p2n/2p5/3P4/7N/PPP2PPP/RNBQKB1R w KQq - 3 6 the code below outputs ValueError: illegal uci: ...
I have the following fen RNBK1B1R/PPPPQPPP/5N2/3pP3/4p1p1/2n2n2/ppp2p1p/r1bkqb1r b which is generated from a image recognition technique. This fen is ...