Coder Social home page Coder Social logo

airhockey's Introduction

Air Hockey

About Air Hockey

This is a two player game. There are two paddles and a puck. The left-paddle (Player 1) can be moved using WASD keys and the right-paddle (Player 2) can be moved by the arrow keys. The puck hits the upper and lower boundaries and gets reflected and if it goes past the paddle, it is point for the other one.

Screenshots

Gmaeplay

Prerequisite

Python2 is the default language needed for playing this game,to check which version of Python you have, type the following in terminal:

python --version

Installing Pygame

sudo apt-get install python-pip
pip install --upgrade pip
pip install pygame

If this does not work, then

sudo -H pip install pygame

For more info, visit Pygame download page

Clone and Run

  1. Clone the repository.

  2. Create the branch on your local machine and switch in this branch :

git branch [name_of_your_new_branch]
git checkout [name_of_your_branch]
  1. Open the directory and run the file :
python2 main.py

airhockey's People

Contributors

aniq55 avatar captaindavinci avatar nityanandagohain avatar shikhakujur avatar soumam007 avatar thealphadollar avatar zer-0-ne avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.