High-performance chess move generation with tensor export.
Project description
tensor_chess
Optimized chess position engine with Python bindings and tensor export designed for fast reinforcement-learning and analytics workflows.
Features
- High-performance C move generator exposed as
tensor_chess.Position. - Push/pop stack for reversible play, legal move generation, state inspection, and FEN export.
- Direct tensor export to 15×8×8 uint8 planes ready for ML pipelines.
- Dead-draw detection, result reporting, and bitboard access for advanced heuristics.
Installation
pip install tensor-chess
Quick Start
from tensor_chess import Position
pos = Position()
pos.push("e2e4")
pos.push("e7e5")
tensor = pos.to_tensor()
print(pos.board())
print(len(tensor)) # 960 bytes
Documentation
See docs/API_REFERENCE.md for the full API.
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
tensor_chess-0.1.1.tar.gz
(16.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tensor_chess-0.1.1.tar.gz.
File metadata
- Download URL: tensor_chess-0.1.1.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01b1616000e97f113d9e9a5ee5ac9264d161d8fe06b7568ab237dc0ab2d1b9ce
|
|
| MD5 |
775e6cafe1b713d9a04dfcf6ea22808e
|
|
| BLAKE2b-256 |
8247cd62fb2870bde633894d890ddc632f5509e9f0d6455c557f621663767da2
|
File details
Details for the file tensor_chess-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: tensor_chess-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 17.5 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16aa31ddf0f19b1fe5818b2aa3c01b9e9f6af5aacbc76aee9957135f99e29a74
|
|
| MD5 |
e44a8b4face5b4d6c96e261c91f66298
|
|
| BLAKE2b-256 |
f52a9cb41e6432dfb592f8aec74eb3fb473129d84dbb3de45c85064096b00c48
|