Inspiration
I'm a final-year Electrical Engineering student from Rwanda, doing the ALX Data Science programme, and this is my first esports hackathon. Draft prep is hours of watching VODs and tallying picks by hand. The data that answers "what will they play, and what should we take away?" already exists in GRID's event feeds. I wanted Cloud9's coaches to get that answer in seconds. I also wanted every answer to show its evidence, because a 4–0 record on a champion is not 40 games of proof, and a pattern that looks strong this month may not repeat next month.
What it does
You pick our team (Cloud9 Kia by default) and an opponent. The dashboard has seven tabs:
- Match prep: the 60-second brief. It covers head-to-head and form, what they'll draft, our top 5 bans, the top 3 "how to beat them" cards, and what to watch out for. It exports to a one-page printable report.
- Draft simulator: you play a 20-slot pro draft pick by pick. First pick and side are set separately (2026 "first selection"), along with the game number and Fearless-locked champions. Each step shows our win chance with a 90% range next to team strength alone, the best 5 options with what each shifts, and the opponent's 5 most likely next picks or bans.
- Opponent scouting: champion pool by inferred role, priority picks, bans by phase, and early-game objectives (only the patterns that held up).
- Insights: "How to beat " cards with Wilson 90% intervals, confidence and sample size, plus self-scouting of our own predictable habits.
- Ban plan: the five bans that hurt them most, each led by its strongest plain-English reason.
- Fearless series: their record, champion variety and top picks in games 1 to 5, plus a series planner. You mark the champions already used and get the next game's bans.
- Against us: what they ban against us, and what we ban against them.
Every rate shows its sample size, and small samples are flagged.
How I built it
I set the goal and the direction, planned with Claude in chat, and had Claude write and test the code inside PyCharm through JetBrains Air. I checked each result before building on it.
- Pipeline: Python streams all 745 LoL series (zstd JSON Lines) and takes each game's final draft snapshot. It joins patch, sides and winner from GRID's metadata on IDs, and maps every action to its standard draft slot (1–20). The same pass collects first blood, dragon, void grub, herald and tower events.
- Roles are inferred, because the data has none.
- Models: an Elo + draft win-probability model (scikit-learn logistic regression), opponent-habit tables for likely picks, and a ban score you can read.
- Validation: everything is fitted on earlier games and tested on later ones (walk-forward by month or by date), never on a random split.
- UI: all logic lives in one Python package. A Streamlit + Plotly dashboard only lays it out.
- JetBrains tools: PyCharm (project, interpreter, git, pytest runner, seven shared run configurations, .idea/ committed) and JetBrains Air (the in-IDE agent panel running Claude, which wrote and tested the code from a written project brief). Ruff, pytest and GitHub Actions check every push.
Does it work? (tested on games it never saw)
- Ban plan (439 games from 2026): the opponent picked a listed champion 34% of the time when it was left open, vs 27% for the league meta's top 5 and 20% for their own top 5.
- Likely picks (897 games): their actual next pick was in our top 5 44% of the time, vs 37% for the meta.
- Only advice that held up is shown: draft habits pointed the same way in later games 82% of the time, so they qualify. Kinds that didn't hold up are labelled as such.
- Honest negative result: the win model reached 65.2% vs 64.1% for team strength alone, a gain that isn't statistically real, so the simulator shows "what each choice shifts", not a forecast.
Challenges I ran into
- Choosing a draft source. The event stream and the final snapshot disagree in 5 games, and the stream carries 461 undo events.
- 2026 first selection. The first-pick team can be on red side, which broke my blue-first draft template.
- No role field. Roster order only matches roles in early-2025 events.
- The draft barely predicts the winner. I kept the honest result and reframed the simulator.
- Most patterns don't repeat. Win-rate gaps by side, first pick or Fearless carry-over, and most early-game habits, were coin flips in later games, so I stopped showing them as advice.
Accomplishments that I'm proud of
- Two independently validated results (ban plan and likely picks) on unseen games.
- Fearless Draft detected from the data: no champion is repeated in 568 multi-game series, across all 20 events.
- Every number shows its sample size.
- License-safe throughout: no GRID data in the repo or its history.
What I learned
- How pro LoL drafting works (phases, first pick, Fearless), and how much 2026's first-selection rule changes draft analysis.
- Testing on later games changes the product: more than half of my first ideas didn't survive it.
- Small samples need to be visible, smoothed and filtered, or they dominate any ranking.
- A score a coach can read, with weights they can adjust, earns more trust than a black box.
What's next
- Counter-pick suggestions by lane matchup, with enough games behind them.
- Team-composition tendencies (engage, poke, scaling) on top of single champions.
- Live input from an ongoing series instead of manual entry.
- VALORANT map and agent scouting with the same approach.
Full methodology and every validation number: docs/VALIDATION.md in the repo.
Built With
- claude
- github-actions
- grid
- jetbrains-air
- numpy
- pandas
- plotly
- pycharm
- python
- scikit-learn
- streamlit