I Didn’t See 14,000,605 Futures. I Saw 4 Million.


For the past couple of days, I’ve been playing this absurdly addictive footy game (rugby) with friends nonstop. My personal best is 95 in solo mode, and my wife hit a whopping 99. (Fun secret: the whole point is to set the volume you like, so there’s technically no right answer.)

Anyway, I kept replaying it, and in puppy mode I could never get past 41. (You can shove the ball clean off the screen and still only max out at 41, lol.)

Then, while talking it over with my wife, we wondered: is a score above 40 even possible? Maybe the owner’s calling time needs to be a second shorter? I was pretty convinced that was it. But wait, we can’t actually know until we try every possible shot, right?

Is that even realistic? Wouldn’t there be way too many? Actually, how many is “too many”?

The variables are where the kick starts and where you release after dragging. So it’s roughly start points A × end points B… that’s not that many, is it?

Me: Codex, can you do it?
Codex: yep
Me: go for it

The Lab Is Open

Shot Lab, where you can explore kick positions, power, and direction, and watch replays

Link

Time to run it. That’s 2 million possibilities per mode, so 4 million shots total, spread across 10 parallel workers.

Results

Best Solo Run: 99.954458

Best Puppy Run (Glitch): 95.811488

There’s a physics bug: if the puppy touches the pointed tip of the ball, it can’t push the ball away.

Best Puppy Run (No Glitch): 93

Puppy mode is a bit awkward here, since the top runs exploit a physics engine bug. But the fourth-best run, which doesn’t use any glitch, is amazing. So high scores are possible without glitches after all!! lol

What I Learned

  • Solo mode: As expected, a run that displays 100 on screen is possible. To be exact, 99.954458.
  • Puppy mode: Lots of the top scores come from physics glitches, but you can still hit around 90 legitimately by bouncing the ball into the air.

Watch the Replays Yourself

→ Open Shot Lab: Solo / Puppy Top 10 Replays

Hit Load Solo Top 10 or Load Puppy Top 10 to load my results and watch the replays right away. To run your own search, pick a mode and an interval, then press Find high scores.

Saved replays play back the exact frames of the ball and the puppy. Nothing is recomputed, so you see the same run I did. A new search, though, depends on more than the seed: input coordinates (which vary with screen size), exact shot values, and the initial state all affect it. So the same seed won’t guarantee identical results across environments.

Mobile Shot Lab, selecting Solo and Puppy Top 10 and playing a replay

On mobile, you can watch replays straight from the two Top 10 tabs. If you’re curious, you can run the full 4 million simulations yourself on desktop.

Puppy mode replay screen

Run it in your browser and you’ll get score distribution graphs like these.

Solo mode search results Puppy mode search results Workers searching for shots in parallel For reference, on my MacBook M4 Pro (8 + 4 cores), it takes about 5–6 minutes with 10 workers. I had no idea my laptop could get this loud, lol.

Doctor Strange scanning the futures · Source

Just another developer’s way of enjoying a game :) Mystery solved.

Give it a little shake?