cools maths gamesSurprise me

Pegball

Drop a ball from a cannon, let it rattle through pegs, and wipe out every orange one before your balls are gone.

Pegball title screen
  • Works on mobile
Report a problem

Pegball is a cannon-and-bounce game on a tall board packed with blue pegs. Fourteen of them are orange, and those are your targets. Aim, fire and let gravity do the rest, then plan the next shot around what is left.

How Pegball Works

Press PLAY and swing the cannon within a wide cone. A dotted line shows the starting direction. Once fired, the ball falls and ricochets, and any peg it touches lights up and vanishes shortly after.

Blue pegs score 100, orange pegs 1,000 and the lone green peg 5,000. Every hit in a single shot builds a combo. The first four hits count once, hits five to eight count double, the next four count triple, and the pattern keeps climbing.

You get 10 balls. A gold bucket glides along the bottom, and dropping the ball into it gives back one ball plus 2,500 points. The top bar tracks your score, orange pegs left and balls in stock.

Your First Few Minutes

  1. Press PLAY and move the aim slowly to see the guide line.
  2. Pick an orange peg near the top and fire straight at it.
  3. Watch which pegs the ball clears on the way down.
  4. On the next shot, aim for the side of a peg so the ball skids into a cluster.
  5. Before a long drop, wait for the bucket to slide under your path.

Controls for Pegball

Keyboard, mouse and touch controls for Pegball
To do thisKeyboardMouseTouch screen
Aim the cannonLeft and Right arrows, or A and DMove the pointerTouch where you want to aim
ShootSpaceLeft clickTap
PauseEscnot usednot used

What It Trains

Every shot is an angle problem. You picture the ball glancing off one peg and into the next, which builds a feel for how direction changes on contact.

It also rewards planning. With only 10 balls, you decide which blue pegs to strip away now so the orange ones are easier to reach later.

Strategy Notes

  • Open lanes first. Knocking blue pegs away from an orange group makes the follow-up shots much simpler.
  • Clip pegs on the edge. A side hit sends the ball across the board, while a dead-center hit can pop it straight up.
  • Use slow motion where it counts. Hit the green peg when lots of pegs sit below the ball.
  • Watch the bucket’s rhythm. It moves back and forth, so time long falls to end over it.
  • Get careful near the end. With one or two orange pegs left, an accurate shot beats a big combo.

Good to Know

Your best score is saved in the browser. Sound effects are generated in code. Rounds are short, so it fits a quick break. Pegball is by Frank Force, from his open-source LittleJS Arcade.

Pegball questions and answers

How does a round of Pegball end?

You win the moment the last orange peg is struck. If your ball count hits zero while orange pegs remain, the round is over. Either way, a results screen lists your score and best combo, and you can start a fresh board.

Why is the green peg worth chasing?

Each board has one green peg. It pays 5,000 points and slows time to roughly a third of normal speed for three seconds, which gives you a clearer look at where the ball is heading.

Is every board laid out the same way?

The pegs use the same staggered grid, but their spots shift a little each game. The orange and green pegs are picked at random too, so you never get the exact same layout twice.

Can I play it on a phone?

Yes. Touch the screen where you want to aim and tap to fire. The board is tall, so holding the phone upright shows it best. Keyboard, mouse and gamepad also work.

Games that use shapes & space like Pegball

Different rules, same kind of thinking.

Try something from another shelf