Cricket Manager
Decision 11 of 13

Freeze the team sheet, and make every live decision an event

One decision from Cricket Manager, which asks: How do you make a simulated cricketer behave like the real one — and how would you know if you had failed?


Managing a match live broke assumptions the engine had been allowed to make. The innings state indexes batters by position, so a selection saved mid-match could credit runs to the wrong player. Either manager could make the other side’s decisions, and a retried request could play a step twice.

Now a match runs from a frozen team sheet, decisions happen only at stoppages, each one goes into an event-sourced log, and one function answers for humans and AI alike, so “Hand to AI” is the same code path. If a human opponent doesn’t answer, a 60-second timeout hands the decision to the plan.

Traded away: 150–300 extra events a match and a new table, plus polling instead of push for the live match page.

Your opinion

Would you have decided this differently?

Where do you stand?

What gets published. I read every opinion and publish substantive ones, including those that disagree with me, as a scroll on this page. I may add a reply. I leave out spam, abuse and anything off-topic, so please include only what you’d be happy to see in public.

Where it goes. I keep your opinion, your stance and, if you allow it, your name in a database run by Neon. I don’t ask for your email or store your IP address, but Netlify, which hosts this site, may log it when it handles your request. To have yours removed, email pkrishna@vaulthai.health. A published opinion is removed from the site, though it can remain in my site’s version history.

Next