Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text-based Pong Game

Pong

This is a simple text-based version of the classic Pong game implemented in Python. The game runs in a console and is controlled via keyboard inputs.

Gameplay

The game features the classic Pong gameplay with two paddles and a ball. The objective is to score points by getting the ball past your opponent's paddle. The first player to reach 5 points wins the game.

Controls

  • Player 1 uses the 'W' and 'S' keys to move the paddle up and down.
  • Player 2 uses the Up Arrow and Down Arrow keys to move the paddle up and down.
  • Press 'Escape' to pause and resume the game.

Installation

To run the game, you will need Python 3 installed on your system. If you have Python 3 installed, follow these steps:

  1. Clone the repository:
    git clone https://github.com/haslo/devin_pong_python.git
    
  2. Navigate to the cloned repository directory:
    cd devin_pong_python
    
  3. Create a virtual environment:
    python3 -m venv venv
    
  4. Activate the virtual environment:
    • On macOS and Linux:
      source venv/bin/activate
      
    • On Windows:
      .\venv\Scripts\activate
      
  5. Install the required dependencies:
    pip install -r requirements.txt
    

Running the Game

To start the game, run the following command in the terminal:

python pong.py

Enjoy the game!

About

A console Pong in Python, written by Devin

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages