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.
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.
- 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.
To run the game, you will need Python 3 installed on your system. If you have Python 3 installed, follow these steps:
- Clone the repository:
git clone https://github.com/haslo/devin_pong_python.git - Navigate to the cloned repository directory:
cd devin_pong_python - Create a virtual environment:
python3 -m venv venv - Activate the virtual environment:
- On macOS and Linux:
source venv/bin/activate - On Windows:
.\venv\Scripts\activate
- On macOS and Linux:
- Install the required dependencies:
pip install -r requirements.txt
To start the game, run the following command in the terminal:
python pong.py
Enjoy the game!
