Mouse/toque para mover · W/S ou ↑/↓ no teclado · primeiro a 7 vence
Free online Ping-Pong (Pong)
Pong is the simplest paddle duel in video games: two bars, one ball, and the job of never letting it past you. Play free in your browser against the computer or a friend on the same device. The simplicity is deceptive — three numbers settle every point: the rebound angle, the ball's speed and your rival's paddle speed. This guide gives the exact values used in this version.
History
Physicist William Higinbotham had already built Tennis for Two on an oscilloscope in 1958. But it was in 1972 that Atari's Pong reached the bars: engineer Allan Alcorn was handed a simple tennis game to program by co-founder Nolan Bushnell as a warm-up exercise, and the result was too good to stay one.
The same year the Magnavox Odyssey, designed by Ralph Baer, shipped with a table-tennis game; Magnavox later sued Atari and the case ended in a licensing settlement. In 1975 Home Pong carried the game into living rooms.
How to play
Pick a mode at the top: vs CPU or 2 Players. The red paddle on the left is yours (or Player 1's); the green one on the right belongs to the CPU (or Player 2). Move yours by sliding the mouse over the field, dragging a finger across the screen, or holding W and S (or ↑ and ↓ in vs CPU mode). The ball starts at the centre, waits 0.65 seconds, then heads off to one side.
If the ball gets past a paddle, the other side scores, and the first to 7 wins. After each point the serve goes to whoever just lost it, with the ball slow again — a breather for the player who is behind. In two-player mode the keyboard splits: Player 1 uses W and S and Player 2 uses the ↑ and ↓ arrows (or the right half of the field, with a mouse or touch).
Rules
- The field is 640×400 (an 8:5 ratio), the paddles are 12×74 and the ball has a radius of 9.
- The first to 7 points wins, with no two-point margin: 7–6 ends the game.
- The ball bounces off the top and bottom walls; only the sides score.
- Every paddle hit multiplies the ball's speed by 1.06, up to a cap of 11.5. Each serve resets it to 4.8.
- The exit angle depends on where the ball meets the paddle: dead centre sends it straight, the tips send it out at up to 54°.
- In vs CPU mode both W/S and the ↑/↓ arrows move your paddle (the left one). In two-player mode the keyboard splits: Player 1 uses W/S, Player 2 uses ↑/↓.
- Nothing is saved: there is no high score, and changing mode or restarting resets the score.
Strategies
- Let the ball warm up before you open an angle. In the first two hits of a point, even the tip of the paddle cannot make the ball travel vertically faster than the CPU can move. Hit it flat, build speed, and only then use the tips.
- Make the ball arrive far from where the CPU is. If it sits high, hit with the lower tip of your paddle (the ball drops); if it sits low, use the upper tip (the ball rises). It works best once the ball is already quick.
- Move early, correct late. The moment the ball leaves your rival's paddle, take yours to where the ball will arrive, not to where it is now.
- Use the serve pause. The ball sits still for 0.65 seconds after every point: centre your paddle instead of staring at the scoreboard.
- When you are rushed, hit it flat. That does not slow the ball down, but it comes back straight and easy to read.
- Against a person, mix it up. Anyone repeating the same angle is decoded within two or three points; alternate flat, fast balls with sharp angles.
The rebound angle
This is the rule that gives the game its depth. At the moment of contact, the game measures the vertical gap between the centre of the ball and the centre of the paddle, divides it by 37 (half the paddle's length) and multiplies by 0.95 radians. Two details come with it. Contact counts up to 9 px beyond the tip (the ball's radius), so even clipping the ball with the paddle's corner sends it back at the full angle. And the paddle does not teleport to the mouse: it chases its target, closing 45% of the distance each frame, so a sudden flick arrives with a small delay. In practice:
- Dead centre — 0°: the ball leaves perfectly horizontal.
- About 9 px off centre — roughly 14°.
- About 18 px — roughly 27°.
- About 28 px — roughly 41°.
- At the tip, 37 px or more — 54°, the maximum.
How the speed ramps
The ball leaves the serve at 4.8 px per frame, and every hit, from either side, multiplies that by 1.06. Here a frame means 1/60 of a second, and the real speed is the same on 60, 120 or 144 Hz monitors. Because the speed resets at every point, only long rallies reach the cap. On any monitor a flat ball at 11.5 crosses the court in about 0.8 seconds — very little time to react, plenty for someone who is already in position. The progression looks like this:
- Serve — 4.8.
- After 5 hits — about 6.4.
- After 10 — about 8.6.
- On the 15th hit — 11.5, the cap. After that the ball stops accelerating.
How the CPU plays
The CPU predicts nothing. Every frame it looks at the ball's current height and moves toward it at 4.6 px at most, stopping only when it is within 6 px — even while the ball is travelling away from it. There are no difficulty levels: it plays the same from the first point to the last. Three things follow from that:
- Because it lines itself up with the ball, it almost always hits with the middle of its paddle and returns flat balls. A sharp angle only comes out when it is late.
- It is slower than you: the keyboard moves your paddle at 6.4 px per frame, and the mouse gets there faster still.
- It loses to geometry: after the 3rd hit of a point (counting both paddles), a ball struck with the tip rises or falls at 4.65 px per frame, more than the CPU can move.
Common mistakes
- Chasing the ball. It works while the ball is slow; after the 10th hit a sharply angled ball already moves vertically at nearly 7 px per frame, more than the keyboard's 6.4, and a chaser arrives late.
- Taking the mouse off the field. The mouse only moves the paddle while the pointer is over the field; once it leaves, the paddle stays where it was.
- Tapping without dragging. On a phone the paddle only moves while your finger slides; a stationary tap does nothing.
- Using the arrows in two-player mode. There they move only Player 2's paddle; Player 1 uses W and S, or the mouse or touch on the left half.
Tips for beginners
- Start in vs CPU mode and try to reach 7 using only flat returns, to get the rhythm.
- Watch the ball, not your paddle.
Trivia
- Tennis for Two showed the court from the side, as a cross-section, rather than from above like Pong.
- Official table tennis is played to 11 points with a two-point margin; the Pong here goes to 7 with no extension.
- In this version the loser of a point receives the serve, so the ball always comes back slow to the player who fell behind.
Mobile version
On a phone, drag a finger over the left half of the field to move Player 1's paddle (or yours, against the CPU). In two-player mode Player 2 uses the right half, and both can play at the same time, one thumb on each side. The field keeps its 8:5 proportion and scales to the screen width, with no sideways scrolling.
Frequently asked questions
How do you play Pong?
Move your paddle up and down to return the ball. If the ball gets past it, your opponent scores a point. The first to 7 points wins.
Can two people play on the same device?
Yes. In 2 Players mode Player 1 uses W and S and Player 2 uses the up and down arrows. On a phone, each player controls the paddle on their own side of the screen by dragging a finger.
Do the keyboard arrows work against the CPU?
Yes. In vs CPU mode both W/S and the ↑/↓ arrows move your paddle (the left one); you can also use the mouse or touch. In 2 Players mode the keyboard splits: Player 1 uses W and S and Player 2 uses the arrows.
Does the ball get faster? By how much?
Yes. It starts at 4.8 px per frame (1/60 of a second, on any 60, 120 or 144 Hz monitor) and each hit multiplies the speed by 1.06, up to a cap of 11.5 reached on the 15th hit. Every new point resets the speed.
Is there a difficulty setting, and can I always beat the CPU?
There is a single level. The CPU follows the ball's height at 4.6 px per frame without predicting its path, so fast, sharply angled balls end up getting past it. It takes timing, though; it is not guaranteed.
Is my score or best result saved?
No. Pong keeps no high score: every match starts at 0–0, and switching mode also resets the score.
Do I need to install anything or sign up?
No. It runs straight in your browser, free and with no sign-up.