Skip to content

medchakkir/pong-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pong Game

A classic Pong game implementation built with Python and Turtle. This project recreates the iconic arcade game with modern features and smooth gameplay.

Features

  • Classic two-player Pong gameplay
  • Smooth ball and paddle movement
  • Score tracking system
  • Adjustable game speed
  • Sound effects for ball hits and scoring
  • Pause functionality
  • Game over screen with restart option

Requirements

  • Python 3.x
  • Turtle graphics (built into Python standard library)

Installation

  1. Clone this repository:
git clone https://github.com/<username>/pong-game.git
cd pong-game

Usage

Run the game:

python main.py

Controls

Player 1 (Left Paddle)

  • W: Move paddle up
  • S: Move paddle down

Player 2 (Right Paddle)

  • Up Arrow: Move paddle up
  • Down Arrow: Move paddle down

General Controls

  • P: Pause game
  • R: Restart game
  • ESC: Quit game

Project Structure

  • main.py: Main game loop and initialization
  • paddle.py: Paddle class implementation
  • ball.py: Ball class implementation
  • scoreboard.py: Score tracking and display

Contributing

Feel free to submit issues and enhancement requests!

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A classic Pong game implementation built with Python and Turtle. This project recreates the iconic arcade game with modern features and smooth gameplay.

Resources

License

Stars

Watchers

Forks

Contributors

Languages