Stories · Behind the scenes

I let a robot play first

Before you ever see a new game from this studio, a robot has already played it for hours. Not a real robot: a small program I write for each game that plays it on fast-forward, makes sensible choices, and writes down how long everything took. Here's why I do it, and what it has caught.

Why a one-person studio needs a robot

I'm one person, and most of my games are about progress: earning coins, unlocking places, upgrading things. The hardest part of that kind of game isn't the code or the art. It's the numbers. How much should the second camel cost? How fast should a field grow? When should the next map open?

Get those numbers wrong and the game breaks in quiet ways. Too generous, and you've seen everything in an hour and never come back. Too stingy, and you hit a wall on day two and give up. I can't play a game for a week every time I change a price, but a bot can play that week in a few seconds.

How it works

Every game keeps its rules separate from its pictures. The rules decide what things cost, what they earn and what happens next. The pictures just show it. Because the rules don't need a screen, the bot can run them directly, as fast as the computer allows, and play the way a careful player would: buy the upgrade that pays back fastest, take the better trade, keep everything busy.

When it's done, it prints a timeline. For Caravan Cartel, the bot's company reached Guild Rank 5 after about 16 minutes of game time, crossed into the Dune Sea at about 54 minutes, had found every place on the map at about 92 minutes, and reached Rank 10 at about four and a half hours. A real person stops to read, to think and to admire the camels, so you'll be slower than that, which is the point. If the bot can't reach something in a sensible time, nobody can.

What it catches

Choices that aren't really choices. In Caravan Cartel, the road from Wellspring to Saltby has a hot shortcut across the Salt Flats and a safer detour past a well. I wanted both to be worth taking. So the bot ran the same route for 30 minutes with three camels, three ways: the detour, the shortcut with just enough water, and the shortcut with spare water. Averaged over many runs it earned about 2,137 gold on the detour, 1,918 on the lean shortcut and 2,316 on the safe shortcut. Close on purpose: the shortcut wins if you plan your water, and the gamble of carrying too little doesn't pay. If one plan had earned double, everyone would use it and the choice would be fake.

Dead zones. A dead zone is a stretch where there's nothing to buy and nothing new to see, and you just wait. On a timeline they're easy to spot: a long gap between two lines.

Goals nobody can finish. In Town Wars, an early pacing bot couldn't complete every goal, because special buildings were taking up the map spots it needed. I changed the rule so special buildings don't use those spots, and the bot finished all 20 goals.

What a robot can't tell me

A bot can tell me if a game is fair. It can't tell me if it's fun. It doesn't laugh at a joke, get attached to a camel or feel the click of a good merge. So the robot plays first, and then people play, on real phones. Their notes are worth more than any timeline. If you have some, send them.

← All stories