Skip to content

doomer00/Pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Pong Game

Pong in Python

Introduction

Pong is a two-dimensional sports game that simulates table tennis. The game involves two paddles and a ball, with players competing to score points against each other by hitting the ball past the opponent's paddle.

Features

  • Player-versus-player gameplay
  • The bot will track the ball's y position
  • Diffculties based on bot's paddle speed

Installation

To run the game locally, follow these steps:

  1. Ensure you have Python installed on your machine. You can download it from python.org.
  2. Clone this repository to your local machine using git clone https://github.com/your-username/pong.git
  3. Navigate to the project directory in your terminal.
  4. Install the required dependencies using pip install pygame
  5. Run the game by executing python main.py in the terminal.

How to Play

  • Launch the game using the installation instructions above.
  • Use the provided controls (listed below) to move the paddles and hit the ball.
  • Play against a friend or challenge the bot.
  • Score 10 points to win!!!

Controls

Left:

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

Right:

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

Press:

  • Q: To quit
  • R: To Restart
  • P: To pause/ start

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages