ChessToTheDeath
A simple chess variant where pieces have damage and health values.
Explore the code »
Report Bug
·
Request Feature
Table of Contents
About The Project
This project simply contains a custom chess variant in which every chess piece has it's own health and damage values. Therefor simply taking an enemy piece is not an option. Instead you have to fight it multiple times. The game ends when one of the Kings has no healthpoints left.
Made With
Getting Started
Installation
Choose one of the options below:
pip install ChessToTheDeath
pip install git+https://github.com/SilenZcience/ChessToTheDeath.git
git clone git@github.com:SilenZcience/ChessToTheDeath.git
cd ./ChessToTheDeath
Usage
python -m chess_to_the_death [-h] [-v] ...
| Argument | Description |
|---|---|
| -h, --help | show help message and exit |
| -v, --version | show program's version number and exit |
| -fps FPS, --fps FPS | set max fps (a lower value will improve performance) |
| -nohighlight | disable cell-highlighting on mouse hover |
| -noflip | disable board flipping |
| -random | randomize the health and damage values of all pieces |
| -default | play the default chess variant |
| -crazy | play the crazyhouse chess variant |
| -pos POSITION | FEN starting position |
| -cpu, --cpu-bot | play against the built-in CPU bot |
| -black, --play-black | start as black |
- leftclick a piece to select it
- leftclick a tile to move/attack with your selected piece
- rightclick a tile to mark it with a circle
- rightclick a circled tile to mark it with a square
- rightclick drag & drop across different tiles to draw an arrow
- middleclick an empty tile to crazyplace a piece (only with
-crazyparameter enabled)
Help
Q: Why am i seeing weird characters like
[31;1mr[0min the console?
A: This project uses
ANSI-Escape Codesto display colors in the Terminal. If you see these weird characters, then your Terminal does not support these Codes.
⚠️If you are using the Command Prompt on Windows 10 you can most likely solve this issue by going in the Registry under
Computer\HKEY_CURRENT_USER\Consoleand adding/editing theDWORDvalueVirtualTerminalLeveland setting it to1.
Q: Is it possible to have a different board size/shape?
A: Yes, the
-pos POSITIONparameter supports different board widths and heights. Simply expand the notation with additional rows or columns.
Examples
python -m chess_to_the_death
python -m chess_to_the_death -default -pos "5Q/3k2/1p4/1Pp2p/2Pp1P/3P1K b" -noflip
License
This project is licensed under the MIT License - see the LICENSE file for details
Contact
Metadata
Release files for ChessToTheDeath 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chesstothedeath-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for chesstothedeath-0.1.3-py3-none-any.whl |
Release files / chesstothedeath-0.1.3-py3-none-any.whl
| Download URL | chesstothedeath-0.1.3-py3-none-any.whl |
|---|---|
| Size | 708.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a88f9d344e33bbe815a2b963e9124cbf3c7b197ae333ef501fd9c6c63621b0e
|
|
BLAKE2b-256 checksum How to use checksums |
687d90a6846c9800be3d4b2942e9795116318b0133f21f7173be01606ce8cc29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for ChessToTheDeath 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.