We have talked a lot about algorithms over the last term. This site breaks down the processes that the ghosts use to hunt pac-man.
If you want to practice your games design skills there are a lot of great sites and applications out there.
Here is a list of some software to get you started