Skip to content

sviv1/PongPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Pong Game

This is a simple Pong game implemented in Python using the Turtle graphics library. The game allows two players to control paddles on opposite sides of the screen and compete against each other to score points by hitting the ball past the opponent's paddle.

Requirements

  • Python 3.x
  • Turtle library (usually included with Python installation)

How to Run

  1. Clone or download this repository to your local machine.

  2. Navigate to the project directory in your terminal or command prompt.

  3. Run the following command to start the game:

    python pong.py
  4. Use the Up and Down arrow keys to control the right paddle.

  5. Use the W and S keys to control the left paddle.

  6. The game will continue until one player scores 10 points and is declared the winner.

Game Controls

  • Player 1 (left paddle):

    • Move Up: W key
    • Move Down: S key
  • Player 2 (right paddle):

    • Move Up: Up arrow key
    • Move Down: Down arrow key

Game Rules

  • The ball will start moving towards a random direction at the beginning of each round.
  • Each time the ball hits a paddle, its speed will increase slightly.
  • If the ball goes past a paddle and reaches the left or right edge of the screen, the opposing player scores a point.
  • The game will continue until one player reaches 10 points, at which point the winner will be declared.

Acknowledgements

This Pong game is based on the classic arcade game originally created by Atari in 1972. The Turtle graphics library in Python provides a simple and beginner-friendly way to create games and animations.

License

This project is licensed under the MIT License.


Feel free to customize and expand upon this template to provide more information about your Pong game, such as installation instructions, gameplay instructions, screenshots, or any additional features you implemented.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages