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

Uploaded Source

Built Distribution

chessengine-0.3.0-py3-none-any.whl (9.9 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chessengine-0.3.0.tar.gz
  • Upload date:
  • Size: 12.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for chessengine-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6a0e1c847ac9852fc98422fbaccdf3fcaa2d8a15e0fdb63a762c3aa938437440
MD5 170854216c8448e60dab815cd423365f
BLAKE2b-256 85c5e2b89df13d672780b6a7dcb3aa79d497c8676da15642bca649eda2ce3c9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chessengine-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for chessengine-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0afc1fc9a12baadabac2feb5929217a9079c2c158bd357e5373668dae8462b85
MD5 e11fc81a92991cf4928199977585b2cc
BLAKE2b-256 b505099333920e34f2cb3fbef23fe0d2d81b9bccf0d353bdade6007ba822f161

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