Skip to content

Aflous/pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pong Game

This is a simple implementation of the classic game Pong using the Pygame library.

How to Play

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.

Dependencies

This game requires the Pygame library to be installed. You can install it using pip:

pip install pygame

Running the Game

To run the game, simply run the main.py file:

python app/main.py

Customization

The 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.

Acknowledgements

This game was created as a learning exercise to promote writing clean code

About

The famous game of Pong brought to life using Python with Pygame!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages