Skip to content
/ Pong Public

Pong in python: singleplayer or multiplayer

Notifications You must be signed in to change notification settings

glensk/Pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pong and Sneak in python

Two classic games in python: Pong and Sneak.

Clone this repository

To play, first clone this repository using these commands:

git clone https://github.com/glensk/Pong
cd Pong

Notes on Snake

To play snake, run pip3 install pygame once installed, run python3 snake.

Notes on Pong

Pong in python is for singleplayer or muyltiplayer.

  • Upon start, type singleplayer or multiplayer.
  • Uses keys "w" and "s" for left player.
  • Use keys "up-arrow" and "down-arrow" for right player.
  • to play, follow the steps below (install tkinter && Run Pong).

Install python tkinter library

Now, we need to install the tkinter library for your specific version of python. To find your version of python, type:

python3 --version

For example, my Python version is 3.11, so I would install as

# 🚨 Make sure to specify the correct Python version.

# 👇️ === UBUNTU / DEBIAN ===
sudo apt-get install python3.11-tk

# 👇️ === MacOS ===
brew install python-tk@3.11

# 👇️ === Fedora ===
sudo dnf install python3-tkinter

# 👇️ === CentOS ===
sudo yum install python3-tkinter

# 👇️ === Arch Linux (Manjaro, Antegros) ===
sudo pacman -S tk

Run Pong

python3.11 pong.py

Credits

Disclaimer: Adapted from https://github.com/VissaMoutafis/Pong and from https://www.geeksforgeeks.org/ create-pong-game-using-python-turtle/

Enjoy !!!

About

Pong in python: singleplayer or multiplayer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages