Skip to main content

Bitboard Chess implementation written entirely in Python

Project description

Bit-Chess


Bitboard implementation for Chess in Python

Table of Contents

About

This project implements Chess bitboards using NumPy 64-bit integers and various NumPy array functions for rotated bitboard implementation. This process is used to store all possible orthogonal and diagonal moves, and their respective blocker formations calculated as a unique index. A legal move generator is created by keeping track of pinned pieces and other game conditions to reduce the need for recalculating opposing attacks.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing

pip install bit-chess-python

Usage

If you want to run PERFT, import the PERFT class and call the perft function:

from 

Built Using

  • NumPy
  • gmpy2

Acknowledgements

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

bit_chess_python-0.1.1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

bit_chess_python-0.1.1-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file bit_chess_python-0.1.1.tar.gz.

File metadata

  • Download URL: bit_chess_python-0.1.1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for bit_chess_python-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b9d9f257c87e32d6ae9e9d9ee62f4ec75ff299b25faf5e0d55184bdc00c0aebf
MD5 9c114037cf28c0d43fed40ab63fadad3
BLAKE2b-256 78bf8fc02a3dcc4587fd1918d98558779f90bcc8de7766d70e780f634dc8b994

See more details on using hashes here.

File details

Details for the file bit_chess_python-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for bit_chess_python-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f5e0b92a85552ea9a3cf8e65552a8770a5bd758f7475ffb361674ae764c49720
MD5 3bfb400d0e11a89cdcd4e86dd159a526
BLAKE2b-256 b858de089b18d438c57fa309056376517451e3767b6e55dc2b4ed499147aa04f

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