Skip to content

andrewy1n/Bit-Chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 BitChess import Perft

perft = Perft(FEN_string)
perft.perft(1)

Built Using

  • NumPy
  • gmpy2

Acknowledgements

About

Bitboard implementation for Chess written in Python

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages