A fun, text-based card game built with Python and a customizable rule engine.
Project description
Kard-X
A minimalist, data-driven, text-based card battler that runs directly in your terminal.
Welcome to Kard-X, a pure command-line interface (CLI) card game where strategy meets simplicity. Built with Python and designed for extensibility, Kard-X offers a classic deck-builder experience with a modern, tech-inspired feel.
Features
- Purely Text-Based: Enjoy a clean, distraction-free, and retro-cool gaming experience in your terminal.
- Data-Driven Design: All cards and characters are defined in simple
.jsoncfiles. Modifying the game or creating new content is as easy as editing a text file! - Strategic Depth: Manage your Health (HP), Defense (DEF), and Mana to outwit your opponent. Grow stronger by permanently increasing your Max Mana.
- Infinite Replayability: A robust card-cycling system ensures the battle never ends. Choose from different hero archetypes and face unique enemies.
Installation
You can install Kard-X directly from PyPI with a single command:
pip install kard-x
Requires Python 3.10 or higher.
How to Play
After installation, simply type the following command in your terminal to start the game:
kardx
Troubleshooting: Command Not Found?
If you run kardx and get an error like "command not found", it's likely that your Python Scripts directory isn't in your system's PATH.
Don't worry! You can use this universal command instead, which works on all systems:
python -m kardx
This method directly asks your Python interpreter to find and run the kardx module, bypassing any PATH issues.
Game Concept
The game starts with a Character Selection screen. Each character begins with a unique starting deck.
- Objective: Reduce the enemy's HP to zero.
- Turns: Each turn, you draw 5 cards and your Mana is refilled. Play cards by spending Mana.
- Card Effects:
- Attack: Deal damage to the enemy.
- Defense: Gain DEF to block incoming damage for one turn.
- Power: Play cards like
Mana Crystalto permanently increase your Max Mana, enabling more powerful combos in later turns.
- Deck Cycling: When your draw pile is empty, your discard pile is automatically shuffled back into it, allowing you to use your cards indefinitely.
Roadmap (Future Development)
Kard-X is built to be expanded. Here's what's planned for the future:
- Card Reward System: Gain new cards after winning a battle.
- More Enemies & Bosses: Introduce enemies with unique AI and abilities.
- Relics & Artifacts: Add passive items that grant special bonuses.
- Event System: Encounter non-combat events that offer choices and consequences.
- Color Support: Using libraries like
coloramaorrichto enhance the UI.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Built with passion and Python.
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
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 kard_x-0.1.2.tar.gz.
File metadata
- Download URL: kard_x-0.1.2.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4c069781def47bff4083eca5b97684027c1fb7f826f3de63ec267a262ce459c
|
|
| MD5 |
0f19eb62bf9242345da3ae8d68a6427c
|
|
| BLAKE2b-256 |
8f3e077da578c7c2975b2b6c49d97cca5d652a061750923b4c3b36339355851e
|
File details
Details for the file kard_x-0.1.2-py3-none-any.whl.
File metadata
- Download URL: kard_x-0.1.2-py3-none-any.whl
- Upload date:
- Size: 34.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cac2589d9f5b5621642bb7ab00de0d74a1f49c6426009dc3111ed160e792fd66
|
|
| MD5 |
3dc290bb51b4e0210e605a41ed1e1160
|
|
| BLAKE2b-256 |
58251765c67f4890c2ff9bbea57a35923b9f0f087fdcb8c1d9d8c89baaa6bc27
|