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.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 611b890f7e4d96a1dc82f2cda752ff10da98534371eaa234782024cf58dbb0c9 |
|
MD5 | 7c643ff4a9f3ea1cc568f6ea9add457d |
|
BLAKE2b-256 | be1c06aa72d8797136875c1b746f28a5bf498a5fa512604c3403048f991cad6e |