Skip to content

๐Ÿ“ A simple and classical pong game made by turtle graphics module in Python 3 through an object-oriented programming approach.

License

Notifications You must be signed in to change notification settings

KORINZ/pong-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

LinkedIn


Pong Game

A classical pong game made in Python 3.

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage

About The Project

A simple and classical pong game made by turtle graphics module in Python 3 through an object-oriented programming approach.

Python version used: 3.10.7.

You can learn more about the snake game on its Wikipedia page: https://en.wikipedia.org/wiki/Pong.

You can learn more about turtle graphics module on its Python documentation page: https://docs.python.org/3/library/turtle.html.

(back to top)

Getting Started

Prerequisites

PyPI - Python Version

Python 3.8 or above is required. You can download the latest version through https://www.python.org/downloads/. You can also intall or update Python 3 in your terminal; depending on your operating system, the command to do so might be different.

(back to top)

Terminal Execution

  1. Clone the repo in a directory that is not currently a git repo:
    git clone https://github.com/KORINZ/pong_game.git
  2. Change the directory to the cloned repo:
    cd pong_game
  3. Execute the main.py file:
    python3 main.py

(back to top)

Usage

Use the arrow keys (up, down) and the "W" and "S" keys to control the 2 paddles' movement, respectively.

A ball will be created on the center and move toward the top right corner initially. The ball will bounce on the top wall, the bottom wall, and paddles. If a player misses the ball, 1 point score will be added to the opppent.

(back to top)

About

๐Ÿ“ A simple and classical pong game made by turtle graphics module in Python 3 through an object-oriented programming approach.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages