PyGame usually comes installed with the latest Raspbian distribution, but if it isn't you can use the following command to install it:
sudo apt-get install python-pygame
Test your installation by opening a Python terminal by entering python in a regular terminal and pressing Enter. Now, execute the following command:
import pygame
I get the error;
ImportError: No module named pygame