Game Lab · Learning your habits

Hide and Seek

Let's play hide and seek in the garden! I'm the seeker. I plan my search before you hide, so I can't cheat. My only trick is remembering where you like to hide. Tap a spot (or press 1–0) to hide!

Shows Robo's glowing map and search plan before you choose. Peeked rounds don't count for challenge 1. (That would be cheating!)

How many checks Robo needs

Checks to find the hider (average of last 5) A random hider: 5.5 Something changed
Line going down = Robo is learning your habit and finding you faster.

Checkpoints — Robo's map saved along the way. Tap one to see what a younger Robo believed, and how it would do today.

How it works

Count

Robo keeps a tally for every spot: how often you hid there. It starts with a tiny pretend tally everywhere, so no spot is ever "impossible".

Fade

Every round, old tallies shrink a little. Recent hides count more, so a new habit shows up quickly.

Two clues

Clue 1 is "your favourite spots". Clue 2 is "where you go after the spot you used last". Robo trusts whichever clue has been guessing better.

Search

It turns the tallies into chances, adds a pinch of curiosity, and checks spots from most likely to least likely.

What just happened?

For grown-ups: what's really going on

The seeker is a small Bayesian predictor over 10 hiding spots, used to choose a search order.

  • Clue 1 (marginal): a categorical distribution with a symmetric Dirichlet prior, α = 0.5 per spot. The belief is the posterior mean pi = (ci + α) / (Σc + 10α).
  • Recency: before each update all counts are multiplied by the memory γ (slider, default 0.85), an effective window of about 1/(1−γ) ≈ 7 rounds. This is exponential forgetting, a standard fix for non-stationary behaviour. γ = 1 is the plain Dirichlet–multinomial.
  • Clue 2 (order-1 Markov): one Dirichlet-smoothed table per previous spot, P(next | last), with the same forgetting applied to the row that is updated. It catches sequences such as alternating or going round the garden, which pure counting cannot see.
  • Mixing: Bayesian model averaging with forgetting: each clue's weight is updated as w ← w0.85 · Pclue(observed spot), renormalised with a floor of 0.03, and the belief is Σ w · p.
  • Search order: sort spots by pi + β / (1 + ci) where β is curiosity (default 0.05), an optimism-style exploration bonus for rarely used spots. With β = 0 this is the optimal order for a known distribution: checking in decreasing probability minimises the expected number of checks Σ rank(i) · pi.
  • Why random wins: if the hider is uniform, every order has expected checks (1 + 2 + … + 10)/10 = 5.5. That uniform mixed strategy is the hider's minimax (Nash) strategy in this zero-sum game: nothing the seeker learns can do better.
  • Measured in Node (seeded, 20 runs, default settings): rounds 11–300 averaged about 2.1 checks against Shed lover, 1.6 against Ping-pong, 1.5 against Round the garden, and 5.5 against Dice roller (first 10 rounds: 2.4, 2.9, 4.9, 5.3). After a switch from Shed to Pond lover, the top guess moved to the pond in about 4.5 rounds at γ = 0.85 and about 2.7 rounds at γ = 0.6. A random hider meets challenge 1 (≥ 5 checks over 10 rounds) about 70% of the time per 10-round window.