Country Battle Royale: Pick the Last Country Standing
Tap a flag to pick a country from the 16 in this round, then press Start. Every country is a ball with 100 health. Balls bounce off the wall and off each other, and every collision costs both of them health — the harder the hit, the more they lose. At zero a country is knocked out. The arena slowly shrinks, so every round ends, and the last country standing wins. If your country wins you get 100 points; if it finishes 2nd or 3rd you get 25. Press New countries for a different 16. Points are saved only in your own browser.
This is a game of bouncing balls. The flags are just labels: no country is better than another, and every ball has exactly the same size, speed and health.
The physics behind it
With gravity switched off, every ball simply travels in a straight line until it hits something. Each one starts at a random spot, pointing in a random direction, but all of them start at the same speed.
When two balls meet, the game treats it as a perfectly elastic collision between equal masses. It draws the line between the two centres and splits each ball's velocity into two parts: the part along that line, and the part sideways to it. The sideways parts stay as they are. The parts along the line are simply swapped. That one swap keeps the total momentum and the total kinetic energy exactly the same before and after the bump. It is why a head-on hit can stop one ball dead and send the other off at full speed, just like snooker balls, while a glancing hit barely changes either path.
Damage comes from the impact speed: how fast the two balls were closing in on each other along that same line. Both balls lose the same amount, in proportion to it. A full-speed head-on crash costs a lot more than two balls brushing past each other, and a ball that is moving fast is not safer — it hurts the ball it hits exactly as much as itself.
The wall bounce is a mirror: the speed towards the wall flips round. But the wall is not standing still. After two seconds the arena starts to shrink, and a wall moving inwards gives every ball it touches a small extra push, like a piston squeezing a gas. Balls slowly speed up (the wall can only push a ball up to a set speed, so it stays readable), there is less room to dodge, and collisions get more frequent. That is why every round is forced to an end: the arena never gets so small that balls are jammed together, but it does keep the survivors close. In 5,000 test rounds, every round ended, between 17 and 43 seconds, and eight in ten lasted between 23 and 34 seconds. If one ever ran past 45 seconds, every remaining ball would slowly lose the same amount of health until one was left — in those test rounds that never happened.
So is it fair? Every ball has the same size, mass, speed and health, and follows exactly the same rules. The start spots are random, and the flags are dealt to them at random. Inside every step the order in which the balls are moved and checked for collisions is shuffled again, so no country always gets to act first. If the last two would both be knocked out by the same hit, the one that took less damage survives. Across those 5,000 test rounds, each start slot and each country won close to one round in sixteen.
Finally, the simulation runs at a fixed 60 steps per second, and each step is split into four smaller sub-steps so a fast ball can never skip through another ball or through the wall. A 120 Hz phone draws more pictures and an old laptop draws fewer, but both move the balls forward in the same-sized steps, so a round plays out the same on any screen. The clock counts those steps, not the real time, and it pauses when you switch tabs.
What is simplified
- Balls don't spin, and there is no friction or air resistance — they slide like perfect pucks.
- Health is a game rule, not physics: real balls don't wear out from being hit.
- The limit on how much speed the shrinking wall can add is a game rule to keep the end of a round readable.
- The flags are emoji drawn by your own device, so they may look a little different on different phones. If your device can't draw flag emoji, you will see the two-letter country code instead.
This is a game inspired by physics, not a scientific tool. See the disclaimer for more.