Skip to main content

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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Chaturanga-0.1.7.linux-x86_64.tar.gz (17.6 kB view details)

Uploaded Source

File details

Details for the file Chaturanga-0.1.7.linux-x86_64.tar.gz.

File metadata

  • Download URL: Chaturanga-0.1.7.linux-x86_64.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.15rc1

File hashes

Hashes for Chaturanga-0.1.7.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 243bbc32c1f655c2f67a751dcb30707ab4e872cfd50ca2c1010c03c7837d0ced
MD5 622051c594ae3c1937b7e42be0e6b816
BLAKE2b-256 43b7c9ab1641c2c0ea0efe6b284e3bcdef27aedf65c29fcc0f470a26854f7e29

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page