A simple chess variant where pieces have damage and health values.
Project description
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 |
- 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
-crazy
parameter enabled)
Help
Q: Why am i seeing weird characters like
[31;1mr[0m
in the console?
A: This project uses
ANSI-Escape Codes
to 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\Console
and adding/editing theDWORD
valueVirtualTerminalLevel
and setting it to1
.
Q: Is it possible to have a different board size/shape?
A: Yes, the
-pos POSITION
parameter 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
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
Built Distribution
File details
Details for the file chesstothedeath-0.1.2.tar.gz
.
File metadata
- Download URL: chesstothedeath-0.1.2.tar.gz
- Upload date:
- Size: 705.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15bedf5c9d5799a6763c7c24ce24df0ea9f0b17bc2a1df7a7e86ce70a9fdba93 |
|
MD5 | 121f29d2a9f0e36c877e807e31737f0b |
|
BLAKE2b-256 | af585d1fc4e1df3ec61f59efd2d7967fe37cbd30f8ffe187b5fa07175dd5aaf1 |
File details
Details for the file chesstothedeath-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: chesstothedeath-0.1.2-py3-none-any.whl
- Upload date:
- Size: 706.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34583921a8f6019ebb94f679fd02fcbad840a2ebeb7674d4fc32b2fe186098ea |
|
MD5 | f7312f039f8cf27394156da6d07eaf92 |
|
BLAKE2b-256 | 7b28a8c1e489c44389033fda82c6d46b7f79f93eabd0c01bbf49f572f2857e6a |