Pong game written in python with pygame module. You can play against an AI opponent which is not very smart.
~/Pong_pygame_python$ python run.py
- python 3 (pygame does not behave well with python 2)
- pygame 1.9.3
Go to download page for python
To install pygame run this in terminal/command prompt
$ pip install pygame
- Use UP and DOWN keys to move right paddle up or down.
- The ai controls the left paddle by default.
- Set default argument of
ai_paddle
toNone
inleft_paddle
function to make a user control the left paddle. - The keyboards W and S can be used to control the left paddle.
- Set default argument of
ai_paddle
to1
inright_paddle
function to make a ai control the right paddle.