A.I. is simple.
Forget the computer. Sit back. Think like a human. What EXACTLY would you do if you were the bad guy/alien/evil person?
Write it down. Hell, make a flow diagram if you can. Then look at that and work out how to program it.
For example, assume you are in a game of driving chicken. You need to write the AI for the other car. What is the other car thinking?
Every second its thinking: do I swerve? Do I keep driving at the other car?
Then, at some point, it may decide to swerve. What causes that decision? The distance? The speed? Increasing fear?
Once you've decided what causes it, write a routine that replicates the same behaviour. Simple.
Phil
What do you mean, bears aren't supposed to wear hats and a tie?