Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 31: | Line 31: | ||
One of the best ways to stay alive is to know how your enemies think. And believe it or not, all of the ghosts have their own individual "personality" or Artificial Intelligence (programmed by Hideyuki Mokajima). That is, they each follow a slightly different set of rules for figuring out which way to turn when moving around the maze. If you're in a tight situation, and it looks like you might be attacked from both sides by two different ghosts, knowing how each of them will react can make a difference between life and death. | One of the best ways to stay alive is to know how your enemies think. And believe it or not, all of the ghosts have their own individual "personality" or Artificial Intelligence (programmed by Hideyuki Mokajima). That is, they each follow a slightly different set of rules for figuring out which way to turn when moving around the maze. If you're in a tight situation, and it looks like you might be attacked from both sides by two different ghosts, knowing how each of them will react can make a difference between life and death. | ||
Refer to the diagram on the right. In this current situation, the place where each ghost wants to reach is indicated by the colored circles. Blinky obviously wants to go to Pac-Man's position (the red circle). Except, he can't reach him because he is not allowed to go up the blind alley that Pac-Man is in. Pinky wants to go to the pink circle on the bottom of the ghost regenerator, which is four grid squares ahead of Pac-Man's current direction. Since Pinky can never actually get in there, he will continue to circle the ghost regenerator, until Pac-Man moves. Inky's logic is a little complicated. The cyan square is the space two grid squares away from Pac-Man's current direction. The place where Inky wants to go is the location that is equidistant from the square in the opposite direction from Blinky's position (marked by the cyan circle). He too will circle around the ghost regenerator until Pac-Man moves since Blinky will never be able to reach him. Clyde is simple. Clyde wants to go the | Refer to the diagram on the right. In this current situation, the place where each ghost wants to reach is indicated by the colored circles. Blinky obviously wants to go to Pac-Man's position (the red circle). Except, he can't reach him because he is not allowed to go up the blind alley that Pac-Man is in. Pinky wants to go to the pink circle on the bottom of the ghost regenerator, which is four grid squares ahead of Pac-Man's current direction. Since Pinky can never actually get in there, he will continue to circle the ghost regenerator, until Pac-Man moves. Inky's logic is a little complicated. The cyan square is the space two grid squares away from Pac-Man's current direction. The place where Inky wants to go is the location that is equidistant from the square in the opposite direction from Blinky's position (marked by the cyan circle). He too will circle around the ghost regenerator until Pac-Man moves since Blinky will never be able to reach him. Clyde is simple. Clyde wants to go the orange circle when he is far away from Pac-Man, and he wants to go to the lower left corner (the orange circle) when he is close. Thus, Pac-Man is safe in his current location. | ||
====AI bug==== | ====AI bug==== |