Eat every dot. The big pellets turn the ghosts blue for a few seconds — that is your chance to chase them instead.
Arrow keys or WASD · Space pauses · Mobile: swipe the maze or use the buttons