https://github.com/amssdias/python-pong
Two paddles and a ball, the goal is to defeat your opponent by being the first one to gain 10 points.
https://github.com/amssdias/python-pong
pygame
Last synced: 3 months ago
JSON representation
Two paddles and a ball, the goal is to defeat your opponent by being the first one to gain 10 points.
- Host: GitHub
- URL: https://github.com/amssdias/python-pong
- Owner: amssdias
- Created: 2021-05-12T13:17:00.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-19T11:04:58.000Z (about 4 years ago)
- Last Synced: 2025-01-13T19:24:34.436Z (5 months ago)
- Topics: pygame
- Language: Python
- Homepage:
- Size: 42 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
 
## :pencil: ABout the project
Pong is one of the first computer games that ever created, this simple "tennis like" game features two paddles and a ball, the goal is to defeat your opponent by being the first one to gain 10 points, a player gets a point once the opponent misses a ball.
### Built with
- [Pygame](https://www.pygame.org/news)
## :book: Getting started
### Pre requisites
- [Python][python-download] - 3.9 or up
### Installation
#### Pipfile and Pipfile.Lock
Inside the Pipfile there's all the modules name needed for the project.
1. Download Pipenv through the terminal window (make sure you have [Python][python-download] installed):
```python
pip install pipenv
```
2. After installing pipenv all you have to do is to download the files and in the terminal window, go to the folder with these files and run:```python
pipenv install
```
This will create a virtual environment with the module `pygame`.3. We must have this virtual environment to run our program, through the terminal window:
```python
pipenv shell # To run the virtual environment
exit # To close the virtual environment
```If any doubts here's a link to some more explanations: [Pipenv](https://pipenv-fork.readthedocs.io/en/latest/basics.html)
## :runner: Run
- Download the project, open terminal window on folder with 'pong.py' and type:
```
python pong.py
```Enjoy the game :smiley:
[python-download]: https://www.python.org/downloads/