https://github.com/pknull/rpg-card
Card randomizer for rpg systems
https://github.com/pknull/rpg-card
Last synced: 5 months ago
JSON representation
Card randomizer for rpg systems
- Host: GitHub
- URL: https://github.com/pknull/rpg-card
- Owner: pknull
- Created: 2017-05-26T19:14:56.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2026-01-17T03:32:41.000Z (5 months ago)
- Last Synced: 2026-01-17T15:24:32.289Z (5 months ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RPG Card
A small library for creating and dealing cards for various RPG systems.
> This project is partially managed by [Asha](https://github.com/pknull/asha), a Claude Code framework.
## Installation
```bash
pip install -e .
```
## Usage
```python
from card_picker import Deck, StandardCard
# Build a standard 54 card deck
deck = Deck(StandardCard)
deck.create()
deck.shuffle()
# Deal five cards
hand = deck.deal(5)
print(hand)
```
The module also includes `TarotCard`, `ShadowCard`, and `UnoCard` implementations.
## Running tests
The project uses `pytest` for tests:
```bash
pytest
```