Loaded dice odds for Teamfight Tactics
Project description
tft-loaded-dice
Usage
Use the resulting json: https://raw.githubusercontent.com/stradivari96/tft-loaded-dice/main/output.json
or
pip install tft-loaded-dice
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}}
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
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.22.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97d54dc40a2711f5862729e916ea2f28232d64919e1cab428bc256c539f93964 |
|
MD5 | b29247c7b58344211cf40a40d1158f27 |
|
BLAKE2b-256 | 5ec0377aaf5dab3439cf1aae6efcaa00b31884032c64ff48ff2c68a56df1c777 |