Strategic Advice for the "New Player" in TBS: things every basic AI should know
In a recently posted Dev journal, the topic of AI was brought up. I'd shared some of my experiences in programming AIs in a reply.
One of the maxims I came away with is that AIs can really benefit from supplemental help where the programmer, having a really good understanding of how to win the game, tells the AI how to do certain things.
In a strategy game, what are the top three things you would tell a new player about? You can use specific examples from specific games, or things that are just generally true of most strategy games. Hopefully, we can make a big list of things the AI should "know."
My top three are:
- "Don't lose the fleet." - if you're going to lose control of a point, retreat your defenders when it becomes obvious you're going to lose, and won't be able to inflict decent loses on the enemy. The only thing worse than losing a city is losing a city and losing your army.
- "Don't overextend or overstay" - if you're on a roll, know when to stop. Just because you can take the next city doesn't mean you should, especially if you won't have/produce enough defenders to withstand the counterattack.
- "When they're down, keep them down" - Destroy their ability to mount a counterattack. Wipe unit producing structures/buildings, obliterate economy. Induce shortages, withdraw, harry, hit another place.
The idea is that each of these boils down to a simple algorithm. Calculate losses, determine how much damage you are inflicting on an enemy by continuing to defend, if it is below a certain value, pull out.