Skip to main content

No project description provided

Project description

Chessf

CI

Chessf is a command-line tool to analyze chess games in PGN format, computing board complexity metrics and generating visual plots and summaries.

Features

  • Compute complexity metrics per move based on legal move counts and custom weights.
  • Analyze a single PGN: chessf analyze path/to/game.pgn
  • Batch process all PGNs in a directory: chessf batch data/
  • Outputs metrics as Parquet files and PNG plots in <pgn_dir>/output.
  • Supports GPU acceleration via CuPy, with graceful fallback to NumPy.
  • Extendable complexity formulas and visualizations.

Installation

Install via pip:

pip install chessf

Or install from source with Poetry:

git clone https://github.com/GPT-Design/chessf.git
cd chessf
poetry install

Usage

Analyze a single PGN

chessf analyze data/Waitzkin.pgn --out metrics.parquet

Batch process PGNs

chessf batch data/

This will produce:

data/output/
├── GameName.parquet
├── GameName.png
└── chess_summary.txt

Roadmap

Future enhancements include:

  • More advanced complexity metrics and weighting schemes.
  • Interactive web dashboard for visualizing game complexity.
  • JSON/CSV export options.
  • Improved plot aesthetics with bold comparisons between players.

Contributing

Pull requests are welcome! Please open an issue to discuss major changes before contributing.

License

MIT License © GPT-Design

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

chessf-0.1.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chessf-0.1.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file chessf-0.1.1.tar.gz.

File metadata

  • Download URL: chessf-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.10 Linux/6.11.0-1014-azure

File hashes

Hashes for chessf-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dd64493498eb11683ef2bcc8d30d545e9d5c843641de87df29724ea913525adc
MD5 78602baabcac9d0dae709107665f55f8
BLAKE2b-256 cb2d63a0b3a33f06cb3abae9ba714b6995d85aac8faf9e442c75f420feec2030

See more details on using hashes here.

File details

Details for the file chessf-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: chessf-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.10 Linux/6.11.0-1014-azure

File hashes

Hashes for chessf-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1279318394710be52b43bc07812fbf6d64b02ee39d93bebd4499e71ff7c1b65c
MD5 6606a0f23d6f71b63b14a4c8da377775
BLAKE2b-256 b95cdafc5994d0a7a316d8326d274a2f8adb7c78affebe794fb4f4a40d485cac

See more details on using hashes here.

Supported by

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