Metadata-Version: 2.4
Name: kard-x
Version: 0.1.2
Summary: A fun, text-based card game built with Python and a customizable rule engine.
Author-email: Johnny <your.email@example.com>
License: MIT License
        
        Copyright (c) 2023 [Johnny]
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Project-URL: Homepage, https://github.com/JohnnyWu2k/kardx
Project-URL: Bug Tracker, https://github.com/JohnnyWu2k/kardx/issues
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Games/Entertainment :: Board Games
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: json5
Requires-Dist: wcwidth
Dynamic: license-file


# 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 `.jsonc` files. 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:

```bash
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:

```bash
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:

```bash
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 Crystal` to 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 `colorama` or `rich` to enhance the UI.


## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.


*Built with passion and Python.*
