Page 24 - Click_GPT_c6_Flipbook
P. 24
Understanding AI Through a Game
All of us love to play video games and you must have heard of the game Pac-man. Let us
understand the game.
The game takes place in a maze. The player controls Pac-man whose task is to eat all of the
dots placed in the maze while avoiding four ghosts. The exciting part of the game is that the
four ghosts have their own personality controlled by the central AI system. Blinky (red) is the
leader and consistently follows Pac-man. Inky (cyan) is a shy ghost and tends to follow Blinky.
Pinky (pink) is a slow ghost which tries to trap Pac-man by predicting where he is likely to
go. Finally, Clyde (orange) is a coward ghost which escapes as soon as Pac-man is closing by.
Pac-man is a simple game, but the AI’s actions can be seen in practice and easily understood.
22 Premium Edition-VI

