Bocce
Play bocce against the computer or a friend on a court seen from above: roll the pallino, then point or hit with four balls each. The closest balls score.
How to play
- Each frame starts with the pallino, the small target ball. It must stop past the middle line (10 m) and at least 1 m before the end board. If it does not, the other side rolls it; after two misses it is put on its spot at 15 m.
- The side that rolled the pallino rolls the first ball. Then the other side rolls until one of its balls is closer to the pallino, or it runs out of balls.
- From then on, the side that is not closest always rolls next. If the two closest balls are exactly tied, the side that rolled last rolls again. When one side has no balls left, the other side rolls the rest.
- Balls may knock other balls and the pallino; they bounce off the side and end boards.
- When all eight balls are played, the side with the closest ball scores one point for every ball nearer to the pallino than the other side's best ball. The scoring side rolls the next pallino.
- The first side to 12 points (or 7) wins.
Keyboard and touch
| Tap near the foul line | Choose where along the line you start |
| Tap further down the court | Aim the ball at that point |
| Tab then arrow keys | Move to a slider and change it step by step |
| Enter on Roll | Roll the ball |
Tips
- The dashed line shows where a ball with that power would stop if it hit nothing. Rolling friction slows it by 0.65 m/s every second, so the distance grows with the square of the speed.
- Pointing means rolling softly to stop next to the pallino. Hitting means rolling hard at a ball that is in the way to knock it off. The computer tries both and picks the better one.
- A ball that stops just in front of the pallino blocks the other side's straight line. Starting from the side of the foul line gives you a different angle round it.
- Keep a ball back for last when the other side has run out: the final ball can win a frame.
- Your balls are red and the other side's blue with a white ring, so colour is never the only clue. The close-up shows the distances in centimetres.
About this game
Bocce is the Italian member of a family of bowling games that goes back to ancient Greece and Rome; its cousins include French pétanque and English lawn bowls. It is played on dirt, gravel or grass courts, often with boards round the sides, and it is popular wherever Italian families settled. Official courts are about 27 m long; this page uses a 20 m × 3.6 m backyard court, 107 mm balls, a 40 mm pallino and the common rules above. The balls roll on the B103 disc physics kit: rolling friction slows them steadily, balls keep 70 % of their closing speed when they knock each other and the boards keep half of a ball's speed. Spin and lofted throws are not modelled. The tests check the physics, every rule about who rolls next and the scoring, and replay whole computer games against a separately written Python version. Everything runs in your browser.