This is a two player game. There are two paddles and a puck. The left-paddle (Player 1) can be moved using WASD keys and the right-paddle (Player 2) can be moved by the arrow keys. The puck hits the upper and lower boundaries and gets reflected and if it goes past the paddle, it is point for the other one.
Python2 is the default language needed for playing this game,to check which version of Python you have, type the following in terminal:
python --version
sudo apt-get install python-pip
pip install --upgrade pip
pip install pygame
If this does not work, then
sudo -H pip install pygame
For more info, visit Pygame download page
-
Clone the repository.
-
Create the branch on your local machine and switch in this branch :
git branch [name_of_your_new_branch]
git checkout [name_of_your_branch]
- Open the directory and run the file :
python2 main.py