BoardLast reviewed

Carrom Royale

Carrom Royale is carrom for the browser, with three rule sets, three computer levels and a practice board. The physics uses the Matter.js engine tuned for carrom, and this page explains the rules, how the computer plays and the numbers behind the board.

Carrom Royale

Carrom Royale

Browser-native HTML5 game. No downloads or installations required.

How to play Carrom Royale

  1. Pick a mode: Play with Computer (three difficulty levels), Pass & Play for two people on one screen, Play with Friend online, or Solo Practice.
  2. Pick a rule set. Classic: each player owns white or black coins, and you must pocket yours and cover the queen. Disc Pool: pocket all your discs, then the queen. Freestyle: anyone may pocket any disc; white scores 20, black 10 and a covered queen 50.
  3. Slide the striker along your baseline by dragging anywhere on the board. It can never be placed on top of a coin.
  4. Press on the striker and pull back like a slingshot; the shot goes the opposite way. The further you pull, the harder it hits. Releasing very close to the striker cancels the shot.
  5. Pocketing one of your own coins gives you another shot. After pocketing the red queen you must cover it by pocketing one of your own coins on the same or next shot, or the queen goes back to the centre.
  6. Pocketing the striker is a foul: coins you pocketed on that shot come back and you return one coin as a penalty. Pocketing your last coin before the queen is covered is also a foul.

Controls

Keyboard and mouse

Drag to place the striker, then press and pull back on it to aim and set power. With a keyboard: ←/→ move the striker, A/D aim, W/S power, Space shoots and Esc pauses.

Touchscreen

Drag along the board to slide the striker, then press on it and pull back to aim and set power. Let go to shoot.

Difficulty, in numbers

SettingWhat changesValues from the code
EasyGentle shots, occasional aiming errors, relaxed pace. Picks at random from its 4 best shots.Aim error up to ±4.5° · power ±0.10 · thinks 0.5 s
MediumBalanced targeting and good power. Picks at random from its 2 best shots.Aim error up to ±1.8° · power ±0.04 · thinks 0.7 s
HardAlways takes its best shot, tries twice as many striker positions and values the queen more highly.Aim error up to ±0.4° · power ±0.04 · thinks 0.9 s

Aim error is a random angle added to the shot the computer chose; power is on a scale of 0 to 1. The thinking time is a pause before the shot so you can see what it is doing.

Tips

These tips follow from how the game's rules and numbers work.

  • Thin cuts send the striker on toward the pocket, because it weighs three times a coin and keeps most of its speed. If a coin sits near a pocket, hit it fuller to avoid pocketing the striker and losing a coin as a penalty.
  • Cover the queen in the same turn whenever you can: pocket it only when one of your own coins is also lined up, since an uncovered queen goes back to the centre.
  • In Classic, don't clear your colour too fast. Pocketing your last coin before the queen is covered is a foul.
  • Against Easy, play patiently. It picks randomly from its four best shots and can be up to 4.5 degrees off, so long shots often miss and leave you coins.
  • Use Solo Practice to learn rebounds. The rack resets when you clear the board or whenever you choose, and there is no opponent or turn limit.

Developer notes

Matter.js, tuned for carrom

Carrom Royale uses the Matter.js 2D physics engine, stepped 240 times a second. Its tuning:

stepHz: 240,
coinMass: 5.5,
strikerMass: 16.5,   // three times a coin
restitution: 0.88,   // bounciness of coin and striker collisions
contactFriction: 0.035,
frictionAir: 0.004,
slideDecel: 300,     // how quickly pieces slow on the board
stopSpeed: 5.5

The striker weighing three coins is the important number. It is why a full hit drives a coin hard while the striker slows sharply, and why a striker that clips a coin thinly keeps most of its speed and is likely to follow it into a pocket.

Aiming like a slingshot

You pull back from the striker and the shot goes the opposite way. A pull that ends very close to the striker is ignored, so a mis-tap does not waste your turn, and shots have a minimum power. The dotted guide shows the first disc the striker will hit; the settings let you extend it to show the path after one rail rebound.

How the computer plays

On its turn the computer tries striker positions along its baseline (every 24 units on Easy and Medium, every 12 on Hard). For each, it looks at every coin it is allowed to pocket and every pocket, works out where the striker must touch the coin to send it at that pocket, and drops cuts that are too thin. Each remaining shot gets a score: higher for straighter cuts, lower the further the coin is from the pocket and the striker from the coin, plus 30 for one of its own coins and a bonus for the queen (20, or 45 on Hard). It does not check whether other coins are in the way. Then:

// choose
easy:   random pick from the top 4 shots
medium: random pick from the top 2 shots
hard:   always the top shot
// then miss on purpose
aimError = random(-1, 1) * (easy ? 4.5 : medium ? 1.8 : 0.4) degrees

That is a simplified version of the game's code. The random error is why Easy misses long cuts: an error of 4.5 degrees moves the aim by about 8 cm for every metre the striker travels.

Online play

Play with Friend uses PeerJS to connect the two browsers directly over WebRTC. One player creates a room and shares the code or link, the other joins, and from then on the shots go straight between the two browsers. Only names, avatars and shots are exchanged.

Screenshots

Carrom Royale practice board with the coins racked in the centre and the striker on the bottom baseline
Practice mode with a fresh rack. The panel shows the keyboard controls: ←/→ move, A/D aim, W/S power, Space shoot.
Carrom Royale home screen with Play with Friend, Play with Computer, Pass & Play and Solo Practice
The home screen. Play with Computer offers three difficulty levels.

Questions

What are the differences between Classic, Disc Pool and Freestyle?

Classic: you own one colour, must cover the queen, and score the opponent coins left on the board plus 3 for the queen. Disc Pool: pocket all your discs, then the queen; pocketing the queen early loses the frame. Freestyle: anyone may pocket anything; white is 20, black 10, a covered queen 50.

What counts as a foul?

Pocketing the striker, and pocketing your last coin before the queen is covered. After a striker foul, coins you pocketed on that shot come back and you return one coin.

How does playing with a friend work?

One player creates a room and shares the code or invite link. The game connects the two browsers directly using the public PeerJS service. You need an internet connection, and the other player's browser can see your IP address; see the Privacy Policy.

Can I use a keyboard?

Yes: ←/→ move the striker, A/D aim, W/S change power, Space shoots and Esc pauses.

Other games

Royal Pool King

8-ball pool with its own physics engine, three computer opponents, 22 career levels and a practice table, playable in your browser.

SportsPlay Now

Chessvion

Chess in your browser against ten levels of the Stockfish 19 engine, with 117 puzzles, 7 lessons, endgame drills and an opening explorer.

StrategyPlay Now