Skip to main content

A high performance C Extension for chess

Project description

bulletchess

Builds and Tests PyPI version

bulletchess is a Python module for playing, analyzing, and building engines for chess. Unlike other chess libraries in Python, the core of bulletchess is written in C, allowing it to be much faster than alternatives.

Overview

At a high level, bulletchess includes:

  • A complete game model with intuitive representations for pieces, moves, and positions.
  • Extensively tested legal move generation, application, and undoing.
  • Parsing and writing of positions specified in Forsyth-Edwards Notation (FEN), and moves specified in both Long Algebraic Notation and Standard Algebraic Notation.
  • Methods to determine if a position is check, checkmate, stalemate, and each specific type of draw.
  • Efficient hashing of positions using Zobrist Keys.
  • A Portable Game Notation (PGN) file reader
  • Utility functions for writing engines.
pip install bulletchess

Read the docs

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

bulletchess-0.4.0.tar.gz (114.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

bulletchess-0.4.0-cp313-cp313-win_amd64.whl (99.6 kB view details)

Uploaded CPython 3.13Windows x86-64

bulletchess-0.4.0-cp313-cp313-musllinux_1_2_x86_64.whl (366.1 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

bulletchess-0.4.0-cp313-cp313-musllinux_1_2_aarch64.whl (373.4 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ ARM64

bulletchess-0.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (381.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

bulletchess-0.4.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl (388.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

bulletchess-0.4.0-cp313-cp313-macosx_11_0_arm64.whl (127.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

bulletchess-0.4.0-cp313-cp313-macosx_10_13_x86_64.whl (131.9 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

bulletchess-0.4.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl (127.4 kB view details)

Uploaded CPython 3.13iOS 13.0+ ARM64 Simulator

bulletchess-0.4.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl (124.2 kB view details)

Uploaded CPython 3.13iOS 13.0+ ARM64 Device

File details

Details for the file bulletchess-0.4.0.tar.gz.

File metadata

  • Download URL: bulletchess-0.4.0.tar.gz
  • Upload date:
  • Size: 114.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bulletchess-0.4.0.tar.gz
Algorithm Hash digest
SHA256 a3ba3c29208039cc12e388da377e493406afa74cde26f9756b1d1c6563a130fb
MD5 e1e7337a699165954ea7487658d70579
BLAKE2b-256 9f599159194e4b6ca8beafb0e1cf9f048ca679c5f683a472daa2338666bda863

See more details on using hashes here.

File details

Details for the file bulletchess-0.4.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for bulletchess-0.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ec770eeda94ce4f8fa6efae0bfce812288c443f95c0194c3da6e5412fc29a05c
MD5 33b26b7a30f00fa01e1076dc924ba9bb
BLAKE2b-256 09577c6b5c13881760b8a5d5d6014ccdbf63afa71ad266781c0980b3c5b81880

See more details on using hashes here.

File details

Details for the file bulletchess-0.4.0-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for bulletchess-0.4.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8f354d4f3f26e0b4ea7e762adb875748875c3520c74485949668e89521783c1f
MD5 90260cdb63f3ab93da8ab3dacede9969
BLAKE2b-256 f6e85a4aa579e6c2b4b06e8a41774cb4ed807ee3523f0717d706e42967bff91b

See more details on using hashes here.

File details

Details for the file bulletchess-0.4.0-cp313-cp313-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for bulletchess-0.4.0-cp313-cp313-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 db406ad6e3fe9b55afd125facede07e876a449e7ba131e89689b58ec12581f93
MD5 eafee0a316791d9e4fe02cb826861a16
BLAKE2b-256 ca5c8a5ffb8e891b7eb7e35ad27ce60af60880c28b48c85bc34f151c64f6e516

See more details on using hashes here.

File details

Details for the file bulletchess-0.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for bulletchess-0.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a5976e37d89e8c526d15380abdfbe21c703b374380df76593c193f396e1bec89
MD5 7db951dbc5098b1a159b82f1ae618d97
BLAKE2b-256 54d58ff2df7486ac431caf032ee4f30ca7c69139762cba8c0c68f22455a704eb

See more details on using hashes here.

File details

Details for the file bulletchess-0.4.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for bulletchess-0.4.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e29631e1eaffbf22cb10f27059d4ba25b1f2f83eb422fb1d9e64500b1109e6a9
MD5 31196786772a21888f693ec03cc09dde
BLAKE2b-256 a395b3db88cba0dda37c0f3edb864423653a06dde036d2182e439c73eccc8bff

See more details on using hashes here.

File details

Details for the file bulletchess-0.4.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for bulletchess-0.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3948b7ee9ae50b1c71b8642014e3165543a6ef4142e4b7326fb0a9ba2c9a9b3d
MD5 c9f2170735ca613005f0aed4128dd224
BLAKE2b-256 59f805ccf13f7551775b503d1053f9d08f72e5debd4b3fb94efd0c80f7a8f993

See more details on using hashes here.

File details

Details for the file bulletchess-0.4.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for bulletchess-0.4.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e9f2d0d72a9d69076526be118fa47412b983775781453db62dad869d96f902c9
MD5 2cb475a58ac22970b2559a45ff4177dc
BLAKE2b-256 6884f127519fc9d1b58f52d9603e81f27c2bc5d2476aeea718f5fe41a1823128

See more details on using hashes here.

File details

Details for the file bulletchess-0.4.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl.

File metadata

File hashes

Hashes for bulletchess-0.4.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl
Algorithm Hash digest
SHA256 ca19fcbf57ef4a36be46ad7e37b3d90445440f02ac70574c9f431dca54aa5743
MD5 11e15ac5aac26ec3353e6417a3be1243
BLAKE2b-256 e5573f48972e15738d53df1689a65f8064e551f7fda26f12e9133da3c7c09a7e

See more details on using hashes here.

File details

Details for the file bulletchess-0.4.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl.

File metadata

File hashes

Hashes for bulletchess-0.4.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl
Algorithm Hash digest
SHA256 f9c18d4d85a24a4fa277045dcd3fd0df045610efe3c2c12c56baa4409db88593
MD5 d11f4e7a1759892434f5e886b9c02337
BLAKE2b-256 9acdbb348d2f30c782d6624dbe30125666d05f439627767f31722ce9975e2ee2

See more details on using hashes here.

Supported by

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