Skip to main content

A chess engine with no dependencies

Project description

Chess Engine

Documentation Status Formatting

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


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.3.tar.gz (6.1 MB view details)

Uploaded Source

Built Distribution

chessengine-0.3.3-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

File details

Details for the file chessengine-0.3.3.tar.gz.

File metadata

  • Download URL: chessengine-0.3.3.tar.gz
  • Upload date:
  • Size: 6.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for chessengine-0.3.3.tar.gz
Algorithm Hash digest
SHA256 bb5fc164275b5ae5f0135ab2646baf87ef6229d95bec3953db484335b2a7fb8a
MD5 2a742d2db0c2048e940bd97bd99cc954
BLAKE2b-256 624ee000b52fd8b9c6bb5acf2518aa156fe10aa25b77db619a95ade4022a92cc

See more details on using hashes here.

File details

Details for the file chessengine-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: chessengine-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for chessengine-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ff32d120f7799a37874160d9fff40855d280f96e5c0fbf277133c5f806418dea
MD5 043166db50bf3b69e702a05f49191d92
BLAKE2b-256 dc98de40a9106afec044f42b16aa4a69f5b8ac1e14a767010e4da907330cb0b6

See more details on using hashes here.

Supported by

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