dkopt-0.0.4
توضیحات
deck-optimizer is a Python module to support TCG deck building.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dkopt-0.0.4 |
| نام | dkopt |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | hasoya |
| ایمیل نویسنده | 20637498+hasoya@users.noreply.github.com |
| آدرس صفحه اصلی | https://github.com/hasoya/deck-optimizer |
| آدرس اینترنتی | https://pypi.org/project/dkopt/ |
| مجوز | MIT |
# deck-optimizer
[](https://badge.fury.io/py/dkopt)
[](https://pypi.org/project/dkopt/)
[](https://github.com/hasoya/deck-optimizer/actions/workflows/docker-publish.yml)
[](https://github.com/hasoya/deck-optimizer/actions/workflows/python-app.yml)
[](https://github.com/hasoya/deck-optimizer/actions/workflows/pypi-publish.yml)
[](https://www.codacy.com/gh/hasoya/deck-optimizer/dashboard?utm_source=github.com&utm_medium=referral&utm_content=hasoya/deck-optimizer&utm_campaign=Badge_Grade)
[](https://www.codacy.com/gh/hasoya/deck-optimizer/dashboard?utm_source=github.com&utm_medium=referral&utm_content=hasoya/deck-optimizer&utm_campaign=Badge_Coverage)
**deck-optimizer** is a Python module to support TCG deck building especially Yu-Gi-Oh!. This module suggest the best combination of cards under given conditions.
## Dependency
Use [Docker](https://www.docker.com/) or see [requirements.txt](https://github.com/hasoya/deck-optimizer/blob/main/requirements.txt).
## Usage
Make config yaml file to describe the ideal hand. For example, if you want to draw at least one PSY-Framegear Gamma and keep PSY-Frame Driver in deck, your config file will be written as below.
```yaml:config.yaml
num_hand: 5
num_deck:
min: 40
max: 60
condition:
- name: Gamma
min: 2
max: 3
require: 1
exact: False
in_hand: True
- name: Driver
min: 1
max: 1
require: 1
exact: True
in_hand: False
```
Then, run the app by following command.
```bash
docker pull ghcr.io/hasoya/deck-optimizer:v0.0.1
docker run -v /absolute/path/to/config/file:/config.yaml ghcr.io/hasoya/deck-optimizer:v0.0.1 -f /config.yaml
```
You will get the suggestion of deck composition and the probability of the ideal hand.
```bash
The best deck
Total Num Deck: 40 Num Gamma in deck: 3 Num Driver in deck: 1
The probability of the ideal hand
30.21%
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.5 | loguru |
| >=5.0 | pyyaml |
نحوه نصب
نصب پکیج whl dkopt-0.0.4:
pip install dkopt-0.0.4.whl
نصب پکیج tar.gz dkopt-0.0.4:
pip install dkopt-0.0.4.tar.gz