622ca942ca5da73f3c26b68166886c8843b7d994
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
TFT-Simulator
Trainings-Tool: TFT-Runden schnell simulieren, 1 Spieler vs. 7 Bots. Kampf = Vergleich von Boardstärke-Scores (Regel-Baseline + gelernte Gewichte aus Endboard-Matchdaten).
Setup
cd backend
uv sync
uv run pytest
Pipeline
uv run python -m tft.cli fetch-static # Community Dragon, kein Key nötig
uv run python -m tft.cli crawl # braucht RIOT_API_KEY in .env
uv run python -m tft.cli extract
uv run python -m tft.cli build-artifact
uv run python -m tft.cli calibrate
uv run python -m tft.cli refresh # crawl + extract + build-artifact (für Cron)
Riot-Dev-Key: https://developer.riotgames.com (24h gültig), in backend/.env als RIOT_API_KEY=....
Täglicher Refresh per Cron (Key muss gültig sein):
15 6 * * * cd /home/arbeit/projects/tft/backend && uv run python -m tft.cli refresh >> ../data/refresh.log 2>&1
Server
uv run uvicorn tft.api.app:app --reload --port 8123
Frontend
cd frontend
npm install
npm run dev # Proxy /api -> localhost:8123
Description
Languages
Python
85.2%
Vue
12.5%
JavaScript
1.3%
Makefile
0.5%
CSS
0.3%
Other
0.2%