Coder Social home page Coder Social logo

air-hockey's Introduction

Air-Hockey

Simulation of air hockey game in Python using Python2, Pygame. Started in Class 12 as part of Computer Science project.

Installation

Cloning repository

Clone the repo to download the game

>> git clone https://github.com/aksh555/Air-Hockey.git
>> cd Air-Hockey

The game is developed in Python2.

Install Pygame for Python2

Use pip2 in case Python3 is also installed in the machine

>> pip install pygame

Run the game

Use python2 in case Python3 is also installed in the machine

>> python AirHockey.py

Real time scores are visible on the top and bottom left corners of the game screens. Detailed logs get updated on the terminal during the course of the game. All scores are also stored in a binary file, and the past scores are shown at the end of each game.

SPEED CONTROL: Puck speed can be manually changed by changing the value in line 372 of AirHockey.py. Higher the value, faster it gets!

Happy Gaming!!

air-hockey's People

Contributors

aksh555 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

mdecourse

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.