This is a simple implementation of the classic game Pong using the Pygame library.
The game is played by two players. Each player controls a paddle using the arrow keys (up and down for player one, and W and S for player two). The objective is to hit the ball with your paddle and make it past the other player's paddle.
The game ends when one player reaches a predetermined number of points (by default 7). The player with the most points at the end of the game is declared the winner.
This game requires the Pygame library to be installed. You can install it using pip:
pip install pygameTo run the game, simply run the main.py file:
python app/main.pyThe game can be customized by changing various constants in the constants.py file. These include the size of the window, the speed of the ball and paddles, and the winning score.
This game was created as a learning exercise to promote writing clean code