request for tips on AI for strategy boardgame.

Started by andrik, January 08, 2007, 06:18:17 AM

Previous topic - Next topic

andrik

Hi,

I'm looking for some tips on how to implement AI for a strategy boardgame.
I want to make a strategy game where units move on a hex board.
I know there's pathfinding, but that's just part of the solution.
Now suppose an AI unit spots an enemy unit 10 hexes away, but the AI unit can only move 3 hexes, simple using A* pathfinding
will send the AI unit on the cheapest path to the enemy. however I want the AI to take some other things in consideration:
For example it has to end it's movement in a hex where its best protected from enemy fire.
furthermore suppose the AI unit CAN reach the enemy unit in 1 turn, I want it to stop short at optimum firing range and not
stop in front of the enemy unit.

Those are some of the considerations I want to implement.
does anybody have any tips and/or experience how to make such an AI?

best regards,
Andrik