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.2.tar.gz
(16.8 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.2.tar.gz.
File metadata
- Download URL: tensor_chess-0.1.2.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43d5ba7f91f4656cfab99774452489ade14e82910440fff8d79e75906b9c795c
|
|
| MD5 |
3d8627d8663de150c2d8ac4e2de4c025
|
|
| BLAKE2b-256 |
10b72d8dfb38602d5caedf57d2011c2ad8ee53ea900c4441d681277fe1ac50d6
|
File details
Details for the file tensor_chess-0.1.2-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: tensor_chess-0.1.2-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 |
f6fe3e1248fbfefec921a5fa33872d10f67ce6fd5dccaafa0471be09c74d369d
|
|
| MD5 |
800e54f4af951a14afb77e77458bbbab
|
|
| BLAKE2b-256 |
1c5cec8d65915205fbdfa34b99ea50095f0dc68cbfc2d35f732945fb7cabdcb0
|