python-chess icon indicating copy to clipboard operation
python-chess copied to clipboard

A chess library for Python, with move generation and validation, PGN parsing and writing, Polyglot opening book reading, Gaviota tablebase probing, Syzygy tablebase probing, and UCI/XBoard engine comm...

Results 64 python-chess issues
Sort by recently updated
recently updated
newest added

Not sure if it's in the scope of the lib, but almost always when I create tests I want to cache the evaluation of the engine, to avoid flakiness. Here...

Hello. I'm trying to make a chess engine using the chess library, however during testing this error occurred: ``` Traceback (most recent call last): File "c:\Users\Admin\Desktop\MyFish 1.0\search.py", line 163, in...

Render coordinates inside the chessboard, left and bottom `chess.svg.board(board, inside_coordinates=True)` ![r1](https://github.com/user-attachments/assets/959637e4-51f9-4b9c-a63b-6d2d49ec1ae0) Render coordinates inside the chessboard, right and bottom `chess.svg.board(board, inside_coordinates=True, inside_coord_style=2)` ![r2](https://github.com/user-attachments/assets/682f528f-0fb9-4c28-9cd8-0555797157fc) chess.com board simulation ``` colors = {...

Background. I have ported the Picochess program from the old 0.25 version of python-chess to this library and I am also using async of both indefinite analysis and Play. https://github.com/JohanSjoblom/picochess...

This issue relates to [#722: Rust or Cython to speed up core components](https://github.com/niklasf/python-chess/issues/722). I have been doing my own testing of compiling the `python-chess` lib with **Cython** as documented here:...

Unless I've missed it, not possible to and useful when working with tbs for example. My goto implementation for now is ```py len(chess.SquareSet(board.occupied)) ``` not sure about the name, `baseboard.nb_pieces`,...

Hi @niklasf, Love your lib! I'm throwing my silly project idea into the ring for a mention in the next update to this part of your README: https://github.com/niklasf/python-chess?tab=readme-ov-file#selected-projects My silly...

When comparing chess.com and lichess's chessboards, their coordinates are displayed **inside** the board, which makes the layout more compact and visually appealing. In `python-chess`, the coordinates are rendered **outside** the...

Hello, i have a .pgn file which includes moves with comments. I want to extract the moves and the comments in the pgn games. for example: (some headers) [event..].... 1.e4{this...

Hi, Does this lib have a class like [chess.pgn.GameBuilder](https://github.com/niklasf/python-chess/blob/f93a7ffb562bf5b9fe7156f5a4f15a7aa8fcb4bd/chess/pgn.py#L1191v) that raises errors instead of suppressing them? I don't mind making my own child class of `GameBuilder` that overrides the `handle_error`...