Name | kard-x JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | A fun, text-based card game built with Python. |
upload_time | 2025-08-03 12:29:43 |
maintainer | None |
docs_url | None |
author | Johnny |
requires_python | >=3.10 |
license | MIT License
Copyright (c) 2025 JohnnyWu2k
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.
|
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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.*
Raw data
{
"_id": null,
"home_page": null,
"name": "kard-x",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": null,
"author": "Johnny",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/9c/6f/49b7007e46f12883398473ba577c827015d1a4504d0fffa2f57e59aaeb53/kard_x-0.1.0.tar.gz",
"platform": null,
"description": "\r\n# Kard-X\r\n\r\n\r\nA minimalist, data-driven, text-based card battler that runs directly in your terminal.\r\n\r\n \r\n<!-- \u63d0\u793a\uff1a\u60a8\u53ef\u4ee5\u5c07\u9019\u5f35\u5716\u7247\u66ff\u63db\u70ba\u60a8\u81ea\u5df1\u904a\u6232\u7684\u622a\u5716 -->\r\n\r\nWelcome 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.\r\n\r\n## Features\r\n\r\n- **Purely Text-Based:** Enjoy a clean, distraction-free, and retro-cool gaming experience in your terminal.\r\n- **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!\r\n- **Strategic Depth:** Manage your Health (HP), Defense (DEF), and Mana to outwit your opponent. Grow stronger by permanently increasing your Max Mana.\r\n- **Infinite Replayability:** A robust card-cycling system ensures the battle never ends. Choose from different hero archetypes and face unique enemies.\r\n\r\n## Installation\r\n\r\nYou can install Kard-X directly from PyPI with a single command:\r\n\r\n```bash\r\npip install kard-x\r\n```\r\n\r\n*Requires Python 3.10 or higher.*\r\n\r\n## How to Play\r\n\r\nAfter installation, simply type the following command in your terminal to start the game:\r\n\r\n```bash\r\nkardx\r\n```\r\n\r\n### Troubleshooting: Command Not Found?\r\n\r\nIf 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.\r\n\r\nDon't worry! You can use this universal command instead, which works on all systems:\r\n\r\n```bash\r\npython -m kardx\r\n```\r\nThis method directly asks your Python interpreter to find and run the `kardx` module, bypassing any PATH issues.\r\n\r\n## Game Concept\r\n\r\nThe game starts with a Character Selection screen. Each character begins with a unique starting deck.\r\n\r\n- **Objective:** Reduce the enemy's HP to zero.\r\n- **Turns:** Each turn, you draw 5 cards and your Mana is refilled. Play cards by spending Mana.\r\n- **Card Effects:**\r\n - **Attack:** Deal damage to the enemy.\r\n - **Defense:** Gain DEF to block incoming damage for one turn.\r\n - **Power:** Play cards like `Mana Crystal` to permanently increase your Max Mana, enabling more powerful combos in later turns.\r\n- **Deck Cycling:** When your draw pile is empty, your discard pile is automatically shuffled back into it, allowing you to use your cards indefinitely.\r\n\r\n## Roadmap (Future Development)\r\n\r\nKard-X is built to be expanded. Here's what's planned for the future:\r\n\r\n- [ ] **Card Reward System:** Gain new cards after winning a battle.\r\n- [ ] **More Enemies & Bosses:** Introduce enemies with unique AI and abilities.\r\n- [ ] **Relics & Artifacts:** Add passive items that grant special bonuses.\r\n- [ ] **Event System:** Encounter non-combat events that offer choices and consequences.\r\n- [ ] **Color Support:** Using libraries like `colorama` or `rich` to enhance the UI.\r\n\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\r\n\r\n\r\n*Built with passion and Python.*\r\n",
"bugtrack_url": null,
"license": "MIT License\r\n \r\n Copyright (c) 2025 JohnnyWu2k\r\n \r\n Permission is hereby granted, free of charge, to any person obtaining a copy\r\n of this software and associated documentation files (the \"Software\"), to deal\r\n in the Software without restriction, including without limitation the rights\r\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n copies of the Software, and to permit persons to whom the Software is\r\n furnished to do so, subject to the following conditions:\r\n \r\n The above copyright notice and this permission notice shall be included in all\r\n copies or substantial portions of the Software.\r\n \r\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n SOFTWARE.\r\n ",
"summary": "A fun, text-based card game built with Python.",
"version": "0.1.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "ed7224737e2319e29ddaac8a7c4dd228a7d3d357c7627cf827157613607319a1",
"md5": "25175d87f8380fcc9112182b02d60f73",
"sha256": "5f23e5d5aa78f5257c0058cfa0257291383d8f4561b5582fd6f6ce53f9a36125"
},
"downloads": -1,
"filename": "kard_x-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "25175d87f8380fcc9112182b02d60f73",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 12272,
"upload_time": "2025-08-03T12:29:42",
"upload_time_iso_8601": "2025-08-03T12:29:42.310540Z",
"url": "https://files.pythonhosted.org/packages/ed/72/24737e2319e29ddaac8a7c4dd228a7d3d357c7627cf827157613607319a1/kard_x-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "9c6f49b7007e46f12883398473ba577c827015d1a4504d0fffa2f57e59aaeb53",
"md5": "0066145422a3c83ff3cbbbe1b25c6bcd",
"sha256": "276656a4df707d5b1a632c77f69a094a459185896387ead86e19f634d1683c25"
},
"downloads": -1,
"filename": "kard_x-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "0066145422a3c83ff3cbbbe1b25c6bcd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 9799,
"upload_time": "2025-08-03T12:29:43",
"upload_time_iso_8601": "2025-08-03T12:29:43.699197Z",
"url": "https://files.pythonhosted.org/packages/9c/6f/49b7007e46f12883398473ba577c827015d1a4504d0fffa2f57e59aaeb53/kard_x-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-03 12:29:43",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "kard-x"
}