Calin said:
My goal is to build a RTS with an AI that can read your mind while you are playing against him.
Valve is working on human brain → computer interface, so wait for that to read the players mind :D
But i see what you want is to predict player actions in RTS?
It's ofc. easy math to predict linear movement. Constant speed and no turns. This can be used to hit a moving target with a projectile, where the projectile also has some limited speed and would miss the target if aiming at it directly.
But i guess you talk about real problems, like predicting the players strategies.
I guess the easiest, and maybe the only way to do this is to learn from previous games against that player, or from his actions in the current match so far.
So it's a question about machine learning? Just asking out of curiosity - i surely can't help.
One idea i had is cheating: You react to the players commands, although no NPC unit is nearby to see them. But that's lame i guess.