A 4x4 Chess library (King + Rook vs King) with move validation and win/draw detection
Project description
Chess4x4
A simple 4x4 Chess Library written in Python.
Currently supports the classic endgame scenario White King + Rook vs Black King on a 4x4 chessboard.
✨ Features
- 4x4 chessboard
- Custom starting positions
- Supports King and Rook
- Generate all possible moves
- Make legal moves
- Detect win (capturing opponent King)
- Detect draw (only two Kings left)
- Turn-based play (White starts)
📦 Installation
pip install chess4x4
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
chess4x4-0.1.1.tar.gz
(5.6 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 chess4x4-0.1.1.tar.gz.
File metadata
- Download URL: chess4x4-0.1.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18a69394e97d26abe4f422ab35492d367ca851a5363af07d0b4375fa11d900df
|
|
| MD5 |
607a8b1f91e95b354ccdf5063ea1820c
|
|
| BLAKE2b-256 |
9b4bb7c06bc94e6b7b119db233609a0fa4f0d4768912db7e1bc36ca775360b42
|
File details
Details for the file chess4x4-0.1.1-py3-none-any.whl.
File metadata
- Download URL: chess4x4-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
447c59957989e32e8728da8b6ca2a711d658fdde3d0b768c9d100a7feb0197a5
|
|
| MD5 |
4313fda95eb0dce858c7c76552933f63
|
|
| BLAKE2b-256 |
f1f4482d96db75794ec80fed5f3588739987c894f63b8ce90b0e7dc0fe53a046
|