tft-loaded-dice
Usage
Use the resulting json
or
pip install tft-loaded-dice
from tft_loaded_dice import best_champions, champion_odds
best_champions("Jayce", level=7)
# [('Zilean', 0.01), ('Jayce', 0.01), ('Caitlyn', 0.01), ('Fiora', 0.005), ('Singed', 0.005), ('Ezreal', 0.005), ('Heimerdinger', 0.005), ('Seraphine', 0.005), ('Vi', 0.003333333333333333)]
champion_odds("Shaco")
# {'Ekko': {3: 0.0, 4: 0.075, 5: 0.1, 6: 0.15, 7: 0.175, 8: 0.175, 9: 0.15, 10: 0.1, 11: 0.06}, 'Braum': {3: 0.0, 4: 0.075, 5: 0.1, 6: 0.15, 7: 0.175, 8: 0.175, 9: 0.15, 10: 0.1, 11: 0.06}, 'Talon': {3: 0.0, 4: 0.05, 5: 0.06666666666666667, 6: 0.1, 7: 0.11666666666666665, 8: 0.11666666666666665, 9: 0.1, 10: 0.06666666666666667, 11: 0.04}, 'Shaco': {3: 0.0, 4: 0.075, 5: 0.1, 6: 0.15, 7: 0.175, 8: 0.175, 9: 0.15, 10: 0.1, 11: 0.06}, 'Twisted Fate': {3: 0.0, 4: 0.05, 5: 0.06666666666666667, 6: 0.1, 7: 0.11666666666666665, 8: 0.11666666666666665, 9: 0.1, 10: 0.06666666666666667, 11: 0.04}, 'Twitch': {3: 0.0, 4: 0.0375, 5: 0.05, 6: 0.075, 7: 0.0875, 8: 0.0875, 9: 0.075, 10: 0.05, 11: 0.03}, 'Darius': {3: 0.0, 4: 0.075, 5: 0.1, 6: 0.15, 7: 0.175, 8: 0.175, 9: 0.15, 10: 0.1, 11: 0.06}, 'Akali': {3: 0.0, 4: 0.075, 5: 0.1, 6: 0.15, 7: 0.175, 8: 0.175, 9: 0.15, 10: 0.1, 11: 0.06}, 'Katarina': {3: 0.0, 4: 0.05, 5: 0.06666666666666667, 6: 0.1, 7: 0.11666666666666665, 8: 0.11666666666666665, 9: 0.1, 10: 0.06666666666666667, 11: 0.04}, 'Zyra': {3: 0.0, 4: 0.05, 5: 0.06666666666666667, 6: 0.1, 7: 0.11666666666666665, 8: 0.11666666666666665, 9: 0.1, 10: 0.06666666666666667, 11: 0.04}}
Development
- Install poetry
https://python-poetry.org/docs/#installation
- Install dependencies
poetry install
poetry run pre-commit install
- Run test
poetry run pytest --cov=tft_loaded_dice --cov-fail-under=80 --cov-report xml
References
Release files for tft-loaded-dice 12.14.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tft-loaded-dice-12.14.0.tar.gz | 10.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tft_loaded_dice-12.14.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.4 kB
Release files / tft-loaded-dice-12.14.0.tar.gz
| Download URL | tft-loaded-dice-12.14.0.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a0b7fdc2efe7fc740af1b81f7261e73e662996fd537c9b7e47c4e51b71f546d
|
|
BLAKE2b-256 checksum How to use checksums |
fd6b034774dec941dd8432c0cb1280895243454644bffb6504886a8d67867472
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.8.13 Linux/5.15.0-1014-azure
|
Release files / tft_loaded_dice-12.14.0-py3-none-any.whl
| Download URL | tft_loaded_dice-12.14.0-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
daf5951a4553dabc3942fa4c542bbb0c6ab9342c23d2dd1782df9f3fa4d4452b
|
|
BLAKE2b-256 checksum How to use checksums |
7699314140f89ff96ba8deb8c481c4a03b8e03e234e4edbd74499498117dfb25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.8.13 Linux/5.15.0-1014-azure
|