Heat value


 * Pacman has the highest Heat value of all agents, which makes Ghosts want to seek it.
 * The Heat disperses to agents surrounding Pacman, getting "cooler" the farther away they are from Pacman. Think of a campfire as warmer the closer you are to it and colder the farther away you are
 * The Ghost plans its movements based on which agent has the highest heat (only agents the Ghost can move on, such as Path, Points, Powerpills)
 * The Path, Points, and Powerpill agents continuously calculate their Heat values to be the average of the surrounding Heat values
 * If Pacman eats a Powerpill, his Heat changes to -1000 rather than +1000, so now all Heat values are inverted and the Ghosts flee Pacman

Related Links: Computational Thinking Patterns for Scalable Game Designs

 * Collaborative Diffusion
 * Hill Climbing
 * Back to Pacman tutorial