Giter VIP home page Giter VIP logo

skparab1 / pong Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 741 KB

Replicating the video game pong in Python, except with a one-control interface, like flappy bird. the user's paddle will automatically move down, and the user can press control+c to move it up. Also has autoplay mode, in which the computer can play for you.

Python 87.14% JavaScript 11.57% HTML 1.29%
ball arena pong pong-game autoplay against-ai game

pong's Introduction

Pong

Replicating the video game pong in Python, except with a one-control interface, like flappy bird. the user's paddle will automatically move down, and the user can press control+c to move it up. Works very well, inculding automated computer paddle moving. Autoplay mode is now active! For entertainment, type autoplay as the name and watch the computer play against itself. Original pong game can be played at ponggame.org.

Pong demo

Pong autoplay demo

What works so far

  • ball bouncing off sides of arena
  • Algorithms that move the ball in one of the following directions
    • right
    • left
    • rightup
    • leftup
    • rightdown
    • leftdown
  • printing arena with ball
  • paddle controls
  • paddles + paddle moving
  • ball bouncing off of wall on other side
  • make computer play against you with a moving paddle
  • scoring
  • Computer automated paddle moving works super well, and it never misses. I should make it so that it sometimes misses.
  • Autoplay mode: Enter the name as autoplay, and the computer will play for you. You need to do nothing. the computer will play aginst itself. It never misses, so the game will never end. (lol)

What is to be done

  • scoreboard text file storage
  • make ball movements a little more randomized
  • make it so that computer sometimes misses the ball

pong's People

Contributors

phuang1024 avatar skparab1 avatar

Stargazers

 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.