Back to Parent


Each of the players was given a specific algorithm based on the characters in Pac-Man:

Pac-Man: try to get from his starting position to the target position while avoiding the ghosts.

Blinky: Take the shortest path to Pac-Man

Inky: Take the shortest path to 4 tiles in front of Pac-Man

Clyde: Move about “randomly” (this will be discussed further below)

Pseudo-code for the movement algorithms:


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0