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
- Inspired by Sebastian Logue's Chess-Coding-Adventures
- Rotated Bitboards pdf
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9d9f257c87e32d6ae9e9d9ee62f4ec75ff299b25faf5e0d55184bdc00c0aebf
|
|
| MD5 |
9c114037cf28c0d43fed40ab63fadad3
|
|
| BLAKE2b-256 |
78bf8fc02a3dcc4587fd1918d98558779f90bcc8de7766d70e780f634dc8b994
|
File details
Details for the file bit_chess_python-0.1.1-py3-none-any.whl.
File metadata
- Download URL: bit_chess_python-0.1.1-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5e0b92a85552ea9a3cf8e65552a8770a5bd758f7475ffb361674ae764c49720
|
|
| MD5 |
3bfb400d0e11a89cdcd4e86dd159a526
|
|
| BLAKE2b-256 |
b858de089b18d438c57fa309056376517451e3767b6e55dc2b4ed499147aa04f
|