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

Hi, I currently use `_transposition_key()` for my chess engine rather than a zorbrist hash or anything like that because the representation is unique and calculated anyway by push / pop....

question

nice to have more features on polyglot like make, merge, dump, etc **ref** http://manpages.ubuntu.com/manpages/bionic/man6/polyglot.6.html

enhancement

Changes to consider when the opportunity arises. * [x] `chess.svg.board(..., flipped)` -> `chess.svg.board(..., orientation)` * [x] Remove `chess.pgn.BaseVisitor.parse_san()`

Has any thought or development gone into using cython for this library, especially the core components which could benefit from a speedup (move generation and validation)? I think that might...

enhancement

https://docs.python.org/3.9/whatsnew/3.9.html * [x] Pidfd child watcher: * Documentation: https://docs.python.org/3.9/library/asyncio-policy.html#asyncio.PidfdChildWatcher * BPO: https://bugs.python.org/issue38692 * Feature detection: https://github.com/python/cpython/blob/3ccdd9b180f9a3f29c8ddc8ad1b331fe8df26519/Lib/test/test_asyncio/test_subprocess.py#L695-L702 & https://github.com/vstinner/cpython/blob/fcd4a18a4b80f857d9855648ba69b7af58f46582/Lib/test/test_posix.py#L1473 As of 2021-07-13, readthedocs.org is limited to Python 3.8.

Currently hidden in `chess._interactive`. Before making it public: * [ ] Prevent UI flashing on redraws * [ ] More natural notation * [ ] Use as equivalent to `__repr__`?...

enhancement

Currently the documentation is built like a reference. Some kind of overview or collection of recipes might be helpful. --- Prompted by this email (in German), with some suggestions: ![image](https://user-images.githubusercontent.com/402777/53901679-d0b2b200-403f-11e9-9a29-93c986e2b533.png)

https://docs.python.org/3/whatsnew/3.8.html Enables: * [ ] Assignment expressions * [ ] `mmap.madvise` * [ ] Positional-only parameters * [ ] `=` in format strings * [ ] `ProactorEventLoop` is the default...

* [ ] `int.bit_count` * [x] ~~`typing.TypeAlias` instead of aliases configured in `doc/conf.py`~~ * [ ] `typing.Union` syntax

This PR makes Piece a `frozen` dataclass and adds a cache for them. For end users (and the library itself of course) this change is invisible API-wise. However, there is...