GithubHelp home page GithubHelp logo

ping_pong_game's Introduction

Ping Pong Game using Turtle

A simple implementation of the classic Pong game using Python's turtle module.

Description

This program implements the Pong game, where two players control paddles on either side of the screen to bounce a ball back and forth. The game keeps track of each player's score and updates it accordingly. The game runs in a Turtle graphics window and listens for keyboard inputs to control the paddles.

How to Play

  1. Run the Python script.
  2. Player A uses the "W" key to move the paddle up and the "S" key to move the paddle down.
  3. Player B uses the "Up Arrow" key to move the paddle up and the "Down Arrow" key to move the paddle down.
  4. The ball will bounce off the paddles and the walls. The objective is to prevent the ball from passing your paddle and to score points when the opponent misses the ball.

Dependencies

This program uses the turtle module, which is a built-in graphics module in Python. No external dependencies are required.

Controls

  • Player A:

    • Move Up: "W" key
    • Move Down: "S" key
  • Player B:

    • Move Up: "Up Arrow" key
    • Move Down: "Down Arrow" key

Author

  • Nilesh Kumar Singh

ping_pong_game's People

Contributors

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