Programming AI for pacman?

wantedSpidy

Senior member
Nov 16, 2006
557
0
0
i'm hoping to write it in C++/Java.

How do I write intelligent AI? I mean its easy to track position and move towards the player, but how do you make the AI such that the ghosts work in teams and possibly learn with each step/level?