How to play ricochet: aiming and bank-shot puzzle rules
Updated
On this page
ricochet is a bank-shot puzzle you play in the browser. A ninja hangs on a rope near the top of a room full of paper lanterns and throws a shuriken. The shuriken cuts through every lantern in its path and bounces off steel, so one good throw can clear half the room. Pop every lantern before you run out of throws.
It keeps working if your connection drops after the page has loaded.
The difficulty selector sits beside the mode buttons. It decides how much of the path you can see, so it changes the game more than the level number does.
Aiming and throwing
- On a phone or tablet, press the room, drag to aim and let go to throw. The throw only fires if your finger moved more than 14 pixels, so a tap or a stray touch aims without spending a throw.
- With a mouse, point to aim and click to throw.
- On a keyboard, the left and right arrows (or A and D) turn the aim, Shift with an arrow turns it finely, and Space or Enter throws. H asks for a hint and R restarts the room.
A key press turns the aim by 0.01 radians (about 0.57 degrees). With Shift it is 0.002 radians (about 0.11 degrees). That fine step matters more than it sounds. The shuriken pops a lantern if it passes within 3.2 room units of its centre, and the room is 72 units wide and 100 tall. A lantern 50 units away is a target about 0.064 radians wide on either side of the line, roughly six plain key presses. After a 120 unit trip with two bounces the same lantern is only about 0.027 radians wide, under three presses, because a small aiming error grows with every unit the shuriken travels. When a bank shot misses by a whisker, switch to Shift and nudge.
What the shuriken does
- Lanterns are paper globes. The shuriken cuts straight through them, so it can pop as many as it passes in one throw.
- Steel bars and the room walls bounce it. Hitting a side flips its direction on that side; hitting a corner flips it both ways and sends it straight back the way it came.
- Wood stops it dead. The shuriken sticks there and that throw is over. The wood stays in the room until a barrel blows it up.
- Glass is a clear, hatched pane. It bounces the shuriken once and then shatters. A shattered pane is gone for later throws, and the same throw passes through it if it comes back.
- Portals come in a pair of spinning rings. Fly into one and the shuriken comes out of the other moving in the same direction. For the next 8 units it ignores portals, so it never ping-pongs.
- Barrels are dark drums with a red band. The shuriken sets one off by passing within 3 units of it. The blast pops every lantern within 15 units of the barrel and breaks any wood within about 15 units plus half the plank’s longest side. It also sets off any other barrel within 15 units. The shuriken keeps flying.
A throw ends after four bounces (the fifth contact stops it) or after 300 units of travel, whichever comes first. A glass pane counts as a bounce, and passing through a portal does not. At the flight speed of 150 units per second, the longest possible throw lasts two seconds.
In a live room, read the counter first: it is par plus your spare throws, and every throw that pops nothing is a throw you cannot get back.
How much of the path you see
The difficulty changes the aim line, the spare throws and the hint count:
| Aim line | Spare throws | Hints | |
|---|---|---|---|
| Easy | first two bounces | 2 | 3 |
| Medium | up to the first bounce | 1 | 2 |
| Hard | only where the throw first lands | 0 | 1 |
Past the shown part a short faint tail points the way the shuriken is heading. The lantern rings on the line mark the pops the preview can already confirm.
This table is also the real choice between the levels. On easy, you can aim a two-bounce shot almost by looking. On hard, you plan the whole route in your head from the first contact, and there is no slack for a test throw.
Par, stars and the throw budget
Every room is solved by a program before you see it. The solver tries 600 evenly spaced angles, takes the one that pops the most lanterns (the shorter path wins ties), removes what that throw destroyed and repeats. The number of throws it needs is par. Your budget is par plus the spare throws above.
- Clear the room at par with no hints: three stars.
- Clear it in fewer throws than par: three stars and a beat par badge.
- Within one throw of par with at most one hint: two stars.
- Any other clear: one star.
Worked example: a room has par 3 on easy, so you get five throws. Three throws and no hint is three stars. Four throws with one hint is two stars. Four throws with two hints is one, because two stars allow at most one hint. Two throws is three stars and the badge. On hard the same par-3 room gives you exactly three throws, so any clear there is par or better and the only stars you can lose are to hints.
Par is an upper bound, not a proven minimum. The solver is greedy: it grabs the biggest pop now and never plans a first throw that sets up a better second. It also samples angles about 0.0105 radians apart, so it can miss a narrow shot that you find with the fine aim step.
Hints are the solver’s next move
A hint runs the same greedy search from the room as it stands now and aims at the best throw, showing the entire path in yellow whatever the difficulty’s normal aim-line length. That makes it a clean way to learn what the solver sees, and a poor way to beat it: following hints reproduces par, never better. If nothing pops from the current position, it says so and suggests a restart.
Restart restores the room and the full throw budget, but hints you already spent stay spent.
Decisions that change a room
- Find the lanterns no straight throw reaches. The generator deliberately places “hidden” lanterns, ones that no throw reaches before its first contact. The generator aims for 1 to 2 of them on easy, 2 to 4 on medium and 3 to 5 on hard, depending on level. Those hidden lanterns are why a room needs a bank shot.
- Spend wood and barrels in order. Wood ends a throw, so a plank between you and a cluster is a wall until a barrel clears it. A barrel throw that also pops lanterns inside the blast is usually the strongest opener.
- Break glass early on purpose. A pane bounces the first throw that touches it, then vanishes. If glass blocks a good line, one deliberate bounce off it opens that line for the throws after.
- Treat a portal as a teleported starting point. Direction is kept, so work out the line from the other ring, not the one you fly into.
- Do not throw to see. On medium a miss uses up your single spare throw. On hard it costs the room.
Failure modes
- Treating par as the minimum. A throw that pops fewer lanterns now can leave a better second throw.
- Hitting wood on the first leg. The throw dies and pops nothing. Check the rings on the aim line before you commit.
- Repeating an old glass bounce. The pane is gone after it breaks.
- Spending hints early. With a single hint on hard, a hint at the start gives you nothing in reserve for the last lantern.
- Aiming a long bank shot by pointing. At 120 units the target is under three key presses wide. Use the keyboard or Shift for the last adjustment.
Endless levels, themes and what scales
The levels never run out. Every ten levels the room changes theme: night dojo, red temple, bamboo rain, snow roof and gold vault, then round again. The theme is only a colour scheme.
What changes with level is the room itself. For example, on medium level 1 has 3 lanterns, 2 steel bars and 2 wood planks, with par between 2 and 4. By level 20 it has 8 lanterns, 3 steel, 2 wood, 2 glass, a portal pair and a barrel, with par between 3 and 5. New obstacles arrive at set levels, and the first time one shows up the message under the room explains it:
| Glass | Barrel | Portals | |
|---|---|---|---|
| Easy | level 8 | level 12 | level 16 |
| Medium | level 6 | level 3 | level 10 |
| Hard | level 4 | level 2 | level 6 |
A practice routine that follows this: spend easy levels 1 to 7 learning pure steel and wood bounces, then easy 8 to 15 for glass and barrels. When you can find a beat-par shot there, try medium, where one spare throw and a shorter aim line make you read the room instead of the preview. Hard is for rooms where you already know what the solver would do.
Each difficulty keeps its own level progress and your best stars on every level. A clear on endless saves your next level and only replaces a level’s best stars with a higher result.
The daily room and challenges
The daily room is the same for every player on each difficulty, based on the UTC date. Each difficulty gets a different room, built with the settings of level 6: 3 lanterns on easy, 4 on medium and 6 on hard. Easy has steel and wood, medium adds a glass pane and a barrel, and hard adds a portal pair.
Your first throw on a difficulty uses up that day’s scored attempt, whether or not you clear the room. Only a cleared room is submitted, ranked by fewest throws, then fewest hints, then time. Later attempts that day are practice and are not sent to the daily board. The marker for “already played today” is stored in your browser, and the server keeps only the first daily clear for each difficulty and day.
After a clear, press challenge a friend. The link opens the exact same room for your friend and shows how many throws they have to beat. Those runs are not on the leaderboards.
Multiplayer rooms
The start screen has a Multiplayer button for private rooms. A room needs the server, so solo play and the daily never wait on it. A live round has everyone play at the same time (up to 8 players), and a challenge link lets friends play later with one scored attempt per round and an invite that lasts 24 hours. A ricochet room round lasts up to 2 minutes. Fewest throws wins, and equal throw counts are split on the elapsed time the server receives. This is separate from the challenge a friend link above, which works without the server and is not ranked.
Design notes
Every throw is deterministic. Angles are stored as integers in 1/10000 of a radian and the shuriken’s direction comes from a small hand-written sine and cosine, so the same list of angles gives the same result in your browser and on the server. That is how a ranked clear is checked: the server rebuilds the room from its seed, replays your angles and accepts only a list that pops the last lantern within the budget. The throw count, par and stars you see on the board are the server’s numbers, not ones your browser sends.
Because the whole flight is computed before it is animated, the animation speed cannot change the result. Reduced motion simply flies it faster (600 units per second instead of 150). Rooms are built in a web worker, with the next level prepared ahead of time, and “building room” only appears if that takes over 150 ms. The project’s commit history for the generator records a test run of 300 rooms per difficulty across levels 1 to 400, all of which the solver cleared.
One honest limit: par comes from a greedy search, so rooms can be cleared in fewer throws than par, and some rooms get fewer hidden lanterns than the target. The commit that added the generator measured the target met in 100, 99.7 and 94.7 percent of rooms on easy, medium and hard.
Related puzzles
Written by the developer from the game's own code. Spot a mistake? hello@onedge.fun