Pacman Ghost moving in android

I want to play game pacman. There is a problem exists in the moving of the pacman ghosts. How can i move the ghost. I use Random Method but it moves in the same direction up or down or left or right. I want actual theory behind pacman movement

Answers


This page has an extremely detailed analysis of Pac-Man with information about the AI of each ghost.


Need Your Help

What do I have to do to execute code in data areas, ( segment protection )

c++ c assembly linux-kernel

I work on a linux platform and I use g++ with the above program that copies a function from the code area to the data area. How do I change protection of data segment in order to allow me to execut...

Find path for parent folder

c string strncpy

I'm trying to parse a string in c something like this :

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.