JavaScript Ping Pong Game
JavaScript game with source. Links to table tennis rules.
Overview
You've either come to this page to (1) read table tennis rules or (2) play my simple ping pong JavaScript game. (1) and (2) have nothing to do with each other, but to help those in category (1), there are table tennis links listed below. Further down the page is the JavaScript game section.
Ping Pong (Table Tennis) Rules
International Table Tennis Federation - Laws The rules according to the ITTF Handbook. http://www.ittf.com/ittf_handbook/ittf_hb.html |
USA Table Tennis - Rules The rules according to USATT. http://www.usatt.org/rules/index.shtml |
About.com - Rules of the Game of Table Tennis Rules similar to USATT and ITTF. Also highlights specific aspects of the game. http://tabletennis.about.com/cs/rules/index.htm |
As a bonus, here's the answer to a question I had.
(Answer is derived from USATT Stump the Ump.)
Q. What happens when Player A serves, and the ball hits the net,
but lands on opposing Player B's side?
A. This is a "let". No point is scored for either player, and Player A serves again.
This process can repeat an unlimited number of times.
JavaScript Ping Pong Game
Play Ping Pong (Opens in new window)
Only works in Internet Explorer 4 and above. When the game is open, press "Start". Use your mouse to move the paddle. A ball (asterisk) bounces off walls in a predictable pattern. Prevent the ball from "falling through." If the ball does fall through it will stop. Press "Start" to try again. You can also pause the game during play.
HTML/JavaScript for the Ping Pong game
Public Domain
The HTML and JavaScript listed below are released to the public domain. Read the Terms of Use for details. The contents of this page are still copyrighted.