Chess API for python
Project description
Chaturanga
Chaturanga is a Chess API written in Python that supports both single-player and two-player games.
Installation
$ pip install Chaturanga
Functionality
- Chessboard generation from a given valid FEN position
- Pretty print of the Chessboard using Unicode (optional, defaults to False)
- Generation of all legal moves for a given position. (including en-passant, castling, and promotion)
- Identifying potential draw situations (3-fold repitition, 100 plies) and checks.
- Identification of all game ending criteria (Checkmate, Stalemate, 5-fold repitition, 150 plies)
- Undoing a move
- Resetting the Chessboard
- Chess Engine using Depth Analysis and a Piece-Square Table
- Lichess BOT
As of now, the Chessboard supports input in UCI notation (eg. e2e4
, b7b8n
) to make a move.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for Chaturanga-0.1.8.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d51ce6caaa02ad222a299f6dfeabde22fa6563d4d092aa5db6d373a99b9b756a |
|
MD5 | 78f0f7fd0990369d2ce45b7a3b991763 |
|
BLAKE2b-256 | 45f9484ae264521ecf66e5084f081fa268e40f815a0e4c77c872a36993b4a889 |