Skip to content

Ammar-Husain/pong-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a 2 players (currently) pong game over local wifi connection.

The first player (i.e the host) must enable the wifi hotspot on his device, inside the game he will be referred to as Player1 and the game server will run on his device.

The second player (i.e the guest) must connect to the host Hotspot, inside the game he will be referred to as Player2.

How to get started

  • Install python if it is not already installed in your device. visit python download page from python official website, choose your operating system and download the latest stable version.

    If you are in android and use termux run the following command in the terminal:

    pkg i python
    
  • Install git if it is not already installed in your device, check git download page for installation instructions.

  • Clone this repository by running this code in your terminal:

git clone https://github.com/Ammar-Husain/pong-game.git
  • Once the repo has been cloned, move to game directory and install the required dependencies by running:
pip install -r requirements.txt

Note:

if you are in android and termux, pygame library will fail to install directly, check my tutorial here about how to set it up.

  • once the dependencies have been installed succefully start the game by running:
python play.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages