Skip to content

This is a simple implementation of the classic Pong game using Python's Turtle graphics library. The game features two paddles controlled by players, a bouncing ball, and a scoreboard to track points.

License

Notifications You must be signed in to change notification settings

balajimanilal/Python-Two-Player-Pong-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-Two-Player-Pong-Game

Welcome to the Pong Game! This is a classic arcade-style game implemented in Python using the Turtle graphics library. Players control paddles to hit a bouncing ball and score points. The first player to reach a designated score wins the game.

Game Mechanics

  • The ball will bounce off the top and bottom walls.
  • Players can move their paddles up and down to hit the ball.
  • If a player fails to hit the ball, the other player scores a point.
  • The game continues until you manually exit.

File Descriptions

  • 1. ball.py: Defines the Ball class, which handles the ball's movement, bouncing, and reset position logic.
  • 2. paddle.py: Contains the Paddle class, which defines paddle behavior and movement.
  • 3. scoreboard.py: Implements the Scoreboard class for displaying and updating the scores.
  • 4. main.py: The main game loop, which initializes the game window, sets up the paddles, ball, and scoreboard, and contains the game logic.

Controls

  • Right Paddle:
    • Up: Up Arrow
    • Down: Down Arrow
  • Left Paddle:
    • Up: W
    • Down: S

Features

  • Two-player gameplay
  • Simple and intuitive controls
  • Score tracking for both players
  • Responsive ball movement and bouncing mechanics
  • Adjustable game speed

About

This is a simple implementation of the classic Pong game using Python's Turtle graphics library. The game features two paddles controlled by players, a bouncing ball, and a scoreboard to track points.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages