A chess engine with no dependencies
Project description
Chess Engine
A chess engine written in Python with no dependencies. All contributions welcome.
Note
This project is in active development and you may encounter bugs, especially in the game loop.
Contribution Guide
The contribution guide can be found on the documentation page
Features
- Internal bitboard representation
- Alpha-beta pruned search
- Move generation API
- Opening book
TODOs
- Move ordering for faster forward search
- Non-trivial board state evaluation using better heuristics
Usage
Install using pip
-
# macOS / Linux (could work on Windows)
python3 -m pip install -U chessengine
# Windows (the primary way)
py -3 -m pip install -U chessengine
Start a game with the computer -
chessengine play
or
python -m chessengine play
If you want to play against another player -
chessengine play -p
or
python -m chessengine play -p
Developer Notes
This project uses the black linter for determining code style.
# Install black via pip.
python -m pip install black==22.10.0
# Format
black .
If you've forked this repository, consider enabling GitHub Actions to leverage the automatic pull request creation provided for resolving code formatting errors!
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
chessengine-0.3.2.tar.gz
(12.7 MB
view hashes)
Built Distribution
Close
Hashes for chessengine-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6bb9ebfb02b992adec0869ac63094e6dcff0a38d8b1883e4215a21f0d45d85c |
|
MD5 | 6f48b4de69ace6c399048edf8284ddc4 |
|
BLAKE2b-256 | 1c2ec5929a355b758deae5a73a593f94e22a104cfec074be85c3dc2cdc69886d |