Git Product home page Git Product logo

ping-pong-game's Introduction

Ping Pong Game

This is a simple Ping Pong game written in JavaScript using the HTML5 canvas element.

How to Play

Use the up and down arrow keys to move both the top and bottom rods together to hit the ball. If the ball goes past your rod, the other player scores a point. The game ends when one player scores 5 points. The player with the highest score is recorded in local storage for future games. If you beat the highest score, you can enter your name to record your score.

Demo

A live demo of the game is not available.

Installation

To run the game locally, clone the repository and open the index.html file in your web browser.

bash Copy code

cd ping-pong-game
open index.html
Contributions
Contributions to the project are welcome. To contribute, fork the repository and create a new branch for your changes.```

perl
Copy code
git fork https://github.com/yourusername/ping-pong-game.git
git checkout -b my-changes
After making your changes, push your branch to your fork and create a pull request to merge your changes into the main repository.

perl
###Copy code
git push origin my-changes
###License
This project is licensed under the MIT License.

ping-pong-game's People

Contributors

devsaurabhdubey avatar

Stargazers

Roman 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.