Skip to content

Klaus-in-Tech/pong-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Pong Game

This is a simple Pong game built using Python 3.11, Turtle and winsound libraries.

Installation

To run the game, you'll need to have Python 3 installed on your computer. You can download it from the official website: Python Official Website

You'll also need to import the Turtle and windsound libraries as shown below:

For Windows users:

import turtle
import winsound

For those using MACOS and Linux you import:

import os

And how you invoke the method within your code is as below:

For MAC users

os.system("afplay sound_Name.wav&")

For Linux users

os.system("aplay sound_Name.wav&")

How to Play

The game is a two-player game. Each player controls a paddle on opposite sides of the screen, and the goal is to hit the ball past the other player's paddle.

Player A controls their paddle with the W and Z keys.
Player B controls their paddle with the O and M keys.
The game never ends.😮

pong game

Credits

This game was built by ME as a fun project to learn Python fundamentals.

Acknowledgements

Tutorial used to build the game: Youtube Video

Author

Feel free to connect with me on my socials as listed above. 😊