Learning a player as they play
Who is Alice?
The previous posts in this series have assumed that we know exactly how Alice throws. In the last post, each player’s throwing distribution was a spherically symmetric Gaussian with a known standard deviation $\sigma$, and the optimal strategy was computed exactly for that $\sigma$. As we have seen, the strategy depends on the player’s ability: a $10$mm county player and a $28$mm pub player should aim at different places at the start of a leg, and at very different places when aiming for a low double.
Of course, in practice a player does not know their $\sigma$. They may have a rough idea of their three-dart average, and will happily tell you it’s better than it is. So how can we use Alice’s estimate of her ability, together with observations of her throws, to decide where she should aim? Which parts of this process have the greatest effect on the recommendations?
The Darts Aim Advisor now includes a new Learn as you play tab. As you enter each dart, the recommendations adapt to the throwing distribution inferred from your results. In this post, I want to explain how these recommendations are made, and the experiments used to choose between the possible approaches.
Learning from darts
Suppose we have computed the optimal strategy for a set of possible throwing distributions, indexed by $k = 1, \dots, K$. To start with, these are spherically symmetric Gaussians with $23$ values of $\sigma$ between $5$mm and $36$mm. Our belief about Alice’s throwing distribution is represented by a weight $w_k$ for each model. Before she throws, these weights are given by a lognormal distribution centred on her stated $\sigma$, wide enough to allow for her estimate to be out by a factor of about two.
After each dart, we observe the information recorded by a scorer: the score, and whether the dart landed in a double. If Alice aimed at $a$ and the observation was $o$, we can update the weights using Bayes’ rule:
\[w_k \leftarrow \frac{w_k\, P_k(o \mid a)}{\sum_j w_j\, P_j(o \mid a)}\]The probabilities $P_k(o \mid a)$ are the same transition probabilities already used by the solver, so this update requires no additional probability computations.
How should we use these weights to choose where to aim? The optimal strategy would account for how each choice of aim point affects what Alice learns about her throwing distribution. However, this gives a much larger problem (a Bayes-adaptive Markov decision process), which cannot be solved exactly. There are several standard approximations we can use instead:
| Rule | How it chooses the aim |
|---|---|
| never learn | the solved strategy for the standard Alice stated |
| plug-in | the strategy for the single most likely throw: the one nearest the belief’s average $\sigma$ |
| B (posterior-weighted) | the aim with the lowest expected visits, averaged over the belief |
| Thompson sampling | draw one throw at random from the belief and follow its strategy, redrawing every leg, every visit or every dart |
| information-directed sampling | trade off expected visits against how much the dart will teach us |
| explore near-ties | among aims almost as good as B’s, choose the most informative one |
Let $Q_k(x, a)$ be the expected number of visits needed to finish from state $x$ after aiming at $a$, assuming Alice’s throwing distribution is given by model $k$. Rule B then chooses
\[a^{\ast} = \arg\min_a \sum_k w_k\, Q_k(x, a).\]Thompson sampling is a popular choice in the reinforcement learning literature, and was the approach I expected to perform best.
Measuring a rule
To compare these rules, we evaluate each decision using Alice’s true throwing distribution. If this gives values $Q^{\ast}$ and $V^{\ast}$, then aiming at $a$ in state $x$ requires $Q^{\ast}(x, a) - V^{\ast}(x)$ more expected visits than the optimal aim. Summing this over every dart in a leg gives exactly the expected number of additional visits required by the rule, compared to a player who knows her own throwing distribution. This is known as the performance-difference identity, and gives a much less noisy comparison than counting the actual visits taken in each leg.
The experiment includes seven players, some honest about their ability and some not, including two whose throwing distributions are not spherically symmetric Gaussians at all. Each player plays $150$ sessions of ten legs under every rule, carrying the updated weights from one leg to the next. Within each session, every rule uses the same random darts.
Which rule?
| Player | never learn | plug-in | B | Thompson, per leg | Thompson, per dart | info-directed |
|---|---|---|---|---|---|---|
| county ($9$mm), says county | 0.002 | 0.002 | 0.001 | 0.008 | 0.005 | 0.001 |
| league ($15$mm), says league | 0.008 | 0.009 | 0.009 | 0.028 | 0.018 | 0.008 |
| pub ($26$mm), says pub | 0.031 | 0.013 | 0.010 | 0.041 | 0.025 | 0.010 |
| club ($20$mm), says county | 0.413 | 0.024 | 0.022 | 0.062 | 0.031 | 0.022 |
| county ($9$mm), says league | 0.161 | 0.009 | 0.005 | 0.038 | 0.013 | 0.005 |
| tall league, says league | 0.075 | 0.060 | 0.057 | 0.087 | 0.077 | 0.057 |
Extra visits per leg over a player who knows her own throw, averaged over ten legs.
![]() |
|---|
| What each leg costs over a player who knows her throw. Left: a $20$mm club player who says she is a $10$mm county player. Right: a heavy-tailed league player, under two different beliefs (see below). Note the log scale. |
There are several interesting observations:
- B is the best rule, or tied for best, for every player. Thompson sampling is worse for every player the belief can describe, by between $0.004$ and $0.040$ visits per leg. The differences are small, but they are consistent: on paired sessions, every one is at least five standard errors from zero.
- Thompson sampling pays most at the start. Drawing one throw per leg, the club player loses $0.37$ visits in the first leg, almost as much as never learning at all ($0.42$). B loses $0.12$.
- Information-directed sampling makes almost exactly the same decisions as B, at $2.6$ times the computational cost. Choosing more informative aims on near-ties makes things worse.
- Learning matters when the stated standard is wrong. The club player who says county loses $0.41$ visits per leg by never learning, and $0.02$ with B. When the stated standard is right, learning costs almost nothing.
Why doesn’t exploration help? In the usual bandit problem, you only learn about the options you try, so it is worth occasionally trying something that looks worse. Here, every dart tells us something about Alice’s throw, wherever she aims it. The information is free, so there is no reason to pay for it. The random draw at the heart of Thompson sampling then adds noise without buying anything: when the belief is wide, it frequently follows the strategy of a player Alice isn’t.
The belief matters more than the rule
The most interesting failure is the heavy-tailed player. Their darts are drawn from a Student-$t$ distribution with $\nu = 2.25$, the shape measured on professionals’ darts: mostly tight, with the occasional wild dart. The belief only contains spherically symmetric Gaussians, so it has to explain the wild darts somehow, and the only explanation available is that the player is much worse than they really are. After ten legs, it reads this $15$mm league player as a $23.7$mm thrower.
Every rule that relies on this belief plays as if Alice were a much weaker player, and loses at least $0.56$ visits per leg: six times more than never learning at all ($0.09$). In this case, the choice of rule makes no difference.
The solution is to change the belief, rather than the rule. Adding heavy-tailed throws of the same standards to the belief, with half the prior weight on each shape, brings the loss down to $0.013$ visits per leg, and costs at most $0.011$ visits per leg for any of the other players. This is the right panel of the figure above: the same rule, with two different beliefs.
More generally, a Bayesian model which can’t represent the true distribution will converge, confidently, to the closest wrong answer. The tall player, whose spread is $1.5$ times greater vertically than horizontally, shows the same effect more mildly. Even the best rule loses $0.057$ visits per leg, because a round belief can’t represent a tall group.
Learning the whole throw?
If the belief is this important, why not allow it to describe everything: the size, shape and lean of the throwing distribution, the weight of its tails, and a pull to one side? I tried this using a cloud of $512$ particles over all six parameters, updated exactly after every dart. To keep the decisions fast enough, I used a surrogate model of the solved game, trained on a few hundred exact solutions, so that the values for any throwing distribution could be computed in milliseconds rather than seconds.
The approach works. A continuous belief over size and tail alone makes almost the same decisions as the grid above: within about $0.002$ visits per leg for five of the seven players, and never more than $0.015$ apart. But letting it learn shape and pull as well made things worse: by $0.03$ to $0.08$ visits per leg for six of the seven players tested, including the tall, leaning and pulled players those extra dimensions were added for. It only helped the player who was wrong in every way at once, and for them, never learning did just as well.
The problem is the information contained in a score. A dart in single $20$ says it landed somewhere in a long, thin wedge, which reveals a lot about how far it went and very little about which direction. If we knew where each dart actually landed, the same belief would learn much faster:
![]() |
|---|
| How far the belief is from the truth, on average, after each number of darts aimed at treble $20$. The same darts are given to the belief in two ways: as scores, and as landing positions. Averages over $12$ sessions. |
From scores alone, the leaning player’s shape is not learned at all in $100$ darts. From positions, the error halves. The pull is known to within $1.7$mm from positions, compared with $4.7$mm from scores. So learning the shape and pull of a player’s throw is mainly limited by what we observe, rather than how we model it. From the scores alone, the size of the distribution and the weight of its tails are the things worth learning.
Learn as you play
The new tab in the Aim Advisor puts all of this together. You tell it your average, then enter each dart as you throw it: the ring (single, double or treble), then the number. It keeps score, tells you where to aim next, and colours the board by the expected visits for the player your darts so far suggest. If you aimed somewhere other than the advice, tap that spot on the board first, so it learns from where you really aimed.
Underneath, it uses rule B over the app’s own solved levels, round and heavy-tailed, with tall and wide left out. Before building it, I reran the experiment on exactly the tables the app ships, which are coarser than the research grid (the round levels are $10$ to $22\%$ apart in $\sigma$, and the heavy-tailed ones further) and stored as $16$-bit probabilities. This led to two changes:
- Blends between levels. A belief over a few discrete levels doesn’t settle between two of them; it picks one. A $30$mm pub player, between the app’s $27$mm and $33$mm levels, kept losing $0.04$ visits per leg. The app’s slider already blends neighbouring levels, so the belief includes three blends between every pair. This brings that player down to $0.019$, the same as the research grid, without downloading anything extra.
- An allowance for typos. Real players mistype scores. Each dart’s likelihood is mixed with a $1\%$ chance that the observation is meaningless. With every dart entered correctly, this changes nothing measurable. With $2\%$ of darts mistyped, it keeps the loss at $0.014$ visits per leg, compared with $0.057$ without it. The research grid, with no allowance at all, loses $0.30$: one wrong score convinces it Alice is someone else.
| Player | never learn (the app before) | Learn as you play |
|---|---|---|
| county ($9$mm), says county | 0.002 | 0.001 |
| league ($15$mm), says league | 0.008 | 0.011 |
| pub ($30$mm), says pub | 0.048 | 0.019 |
| club ($20$mm), says county | 0.418 | 0.031 |
| county ($9$mm), says league | 0.161 | 0.002 |
| heavy-tailed league, says league | 0.085 | 0.014 |
| league, says league, $2\%$ of darts mistyped | 0.008 | 0.014 |
| world class ($6$mm), says world class | 0.002 | 0.000 |
Extra visits per leg over a player who knows her own throw, on the app's own tables, averaged over ten legs.
When Alice’s stated standard is right, learning costs at most about $0.003$ visits per leg, nearly all of it in the first leg while the belief is still wide. When it’s wrong, even slightly, or her throw has a heavy tail, learning saves between $0.03$ and $0.39$ visits per leg.
Let’s look at how the belief evolves as the darts are thrown:
![]() |
|---|
| Left: the app’s belief about a club player (true average $42$) who says she is county standard ($76$). The bold line and band are one session; the thin lines are four others. Vertical lines mark the end of each leg in the bold session. Right: the belief that the throw is heavy-tailed, for a heavy-tailed and a round league player: the median and the middle half of $24$ sessions each. |
The stated average is abandoned within the first visit or two. After three legs, the belief’s median is between $44$ and $49$ in all five sessions, closing in on the true $42$. The heavy tail takes longer, and is less predictable: it needs a wild dart to show itself. After $20$ darts, the heavy-tailed player is believed to be heavy-tailed in two sessions out of three. After $60$ darts, it’s $88\%$ of sessions, while the round player’s belief in a heavy tail has fallen to a median of $2\%$.
The tab keeps your darts in your browser, so the belief carries over from one session to the next. Darts from earlier sessions count for $0.9$ times as much for every session since, so the belief follows your current form rather than last month’s.
What’s next
What have we learned about learning?
- Average over the belief. Rule B is simple, cheap and the best of the rules tested; Thompson sampling is worse, and paying for information is pointless when every dart is informative.
- The belief matters more than the rule. A belief that can’t describe the player will confidently describe someone else, and allowing for a heavy tail is essential.
- Scores teach size, not shape. To learn which way a player’s group leans, or which way their darts drift, we need to know where the darts land.
That last point suggests the next feature for the app: an option to tap where each dart landed. A pull is the easiest thing to learn that way, and it needs no new tables at all, as it just shifts the existing ones.
The code for this post is available in the DartsStrats repository. Notebooks 27 to 29 in notebooks/experiments/ contain the experiments, and the figures come from notebooks/Posts/2026-12-learning-a-player.ipynb. The app’s own check is written up in the Aim Advisor’s source, in _apps/darts/LEARNING_CHECK.md.



Comments