Stop adding more logic

How many stalkers does it take to defeat one Terran bunker? I know the answer, but my bot, PIG_Bot doesn’t, and that’s what gave him so many losses lately.
I kept adding more logic, thinking I could simply “program” my way out of it. But the more I added, the weirder the behavior became. I was solving for the symptom, but I hadn’t even found the actual disease.
You’ve probably been there. You’re staring at a bot that’s behaving weirdly, so you blindly add “improvements” to the code. You patch a bug, the bot does something slightly different, and then you realize you’ve just spiraled into a new set of problems you didn’t even know existed.

The problem is that we usually treat bot failures as one big “intelligence” problem. When PIG_Bot walked into that bunker, I assumed he was just being “dumb.” I tried to make him smarter.
But intelligence isn’t a single dial you turn up.
Every agent, from a basic script to AlphaStar, is just one loop: Perceive, Decide, Act.
Everything your bot does is just a choice about where inside that loop to be smart. When your bot fails, the failure lives in one of those three specific buckets:
1. Perception: It didn’t see the threat.
2. Decision: It saw the threat, but chose the wrong response.
3. Action: It chose the right response, but couldn’t execute it.
This is the diagnostic map you’ve been missing.
Most of us fall into the trap of trying to fix a “Perception” problem by adding more “Decision” logic. In PIG_Bot’s case, I was adding complex attack modifiers (Decision) to a bot that didn’t even realize a bunker was a lethal threat (Perception).
Looking at it as a system made the problem obvious: I was trying to steer a car that didn’t have a steering wheel.
If the bot didn’t see the unit, no amount of “smarter” decision logic will save it. If it saw the unit and decided to retreat, but got stuck on a rock, your “intelligence” isn’t the problem, your pathing is.
⌨️ Next Commit
Pick one “dumb” behavior your bot is showing right now.
Instead of adding new logic, add three temporary print statements or logs to that specific behavior’s execution path:
- Perceive: Log exactly what the bot “sees” right before the failure.
- Decide: Log the final decision the bot made based on that input.
- Act: Log the result of the action command (e.g., the return value of the move/attack call).
If your “Decide” log looks perfect but your “Perceive” log is empty, you’ve just found your disease.
