Loaded dice odds for Teamfight Tactics
Project description
tft-loaded-dice
Usage
from tft_loaded_dice import best_champions, champion_odds
best_champions("Gwen", level=7)
# [('Gwen', 0.0196078431372549), ('Lux', 0.005), ('Lulu', 0.005), ('Fiddlesticks', 0.005)]
champion_odds("Nocturne")
# {'Nocturne': {3: 0.0, 4: 0.15, 5: 0.2, 6: 0.3, 7: 0.35, 8: 0.35, 9: 0.3}, 'Fiddlesticks': {3: 0.0, 4: 0.0375, 5: 0.05, 6: 0.075, 7: 0.0875, 8: 0.0875, 9: 0.075}, 'Volibear': {3: 0.0, 4: 0.075, 5: 0.1, 6: 0.15, 7: 0.175, 8: 0.175, 9: 0.15}, 'Pyke': {3: 0.0, 4: 0.075, 5: 0.1, 6: 0.15, 7: 0.175, 8: 0.175, 9: 0.15}, 'Viego': {3: 0.0, 4: 0.0375, 5: 0.05, 6: 0.075, 7: 0.0875, 8: 0.0875, 9: 0.075}, 'Diana': {3: 0.0, 4: 0.05, 5: 0.06666666666666667, 6: 0.1, 7: 0.11666666666666665, 8: 0.11666666666666665, 9: 0.1}, "Kha'Zix": {3: 0.0, 4: 0.05, 5: 0.06666666666666667, 6: 0.1, 7: 0.11666666666666665, 8: 0.11666666666666665, 9: 0.1}, 'Ivern': {3: 0.0, 4: 0.075, 5: 0.1, 6: 0.15, 7: 0.175, 8: 0.175, 9: 0.15}}
References
- https://github.com/alanz132/loadedDiceOdds
- https://giantslayer.tv/blogs/5261054387/correctly-using-loaded-dice/
- https://www.reddit.com/r/CompetitiveTFT/comments/kw4ah7/loaded_die_odds_for_every_champion/
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
- Gitmoji: https://gitmoji.dev/
- Black: https://black.readthedocs.io/en/stable/
- Isort: https://pycqa.github.io/isort/
- Poetry: https://python-poetry.org/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for tft_loaded_dice-11.18.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a3d91d1277dbf6dbed59ccd0356390e7f79ab5540460533a9848daf2526ca89 |
|
MD5 | 54d3c59844cb1a1fe8c096a73df57a32 |
|
BLAKE2b-256 | badb5a7205ff1fa755aba42b459275e0ca642fde6c2d3c5be9a8d02c1ba4dcd5 |