Step-by-step guide

How to solve Yajilin: the rules and 10 techniques

A Yajilin is a grid where each arrow tells how many shaded squares lie in its direction: you shade squares so that every arrow is right and no two shaded squares touch, then draw one closed loop through every other square. You start from the arrows that leave no choice and the squares beside shaded ones, then follow the loop through corners and narrow places until every square is shaded or on the loop.

  • 10 techniques, each on a real puzzle
  • 7 Yajilins to solve on this page
  • What the arrows give away
  • No sign-up

Making a puzzle book? Yajilin book generator

By Wisdom Effect · Updated

On this page

What is a Yajilin?

A Yajilin is a logic puzzle with two jobs in one grid. First you shade squares: each arrow tells how many shaded squares lie in its direction, and no two shaded squares touch. Then one closed loop runs through every square that is left. The two jobs feed each other: every shaded square gives the loop new squares, and every bend of the loop tells which squares can still be shaded.

Goal
Shade squares so that every arrow counts right and no two shaded squares touch, then draw one loop through every other square.
You need
A pencil and an eraser, or the puzzles on this page. No numbers to write: only shading and one line.
Sizes
Grids from 6×6 to 12×12, Expert up to 10×10, and from 5×5 in kids books. Our books use 8×8 for Easy and 10×10 for Medium, Hard and Expert by default.
Origin
Japan: first printed in the puzzle magazine Puzzle Communication Nikoli in 1999. The name joins yajirushi, Japanese for arrow, with an English word read as link or ring.
Other names
Arrow Ring, and ヤジリン in Japanese.
A solved Yajilin. Every arrow counts its shaded squares, and one loop runs through every other square.

The rules of Yajilin

  1. Arrows count shaded squares

    A clue square holds a number and an arrow. The number tells how many shaded squares lie in the direction of the arrow, all the way to the edge of the grid.

  2. Shaded squares never touch

    Two shaded squares never share a side. They may meet at a corner.

  3. One loop through every other square

    Every square that is not shaded and holds no clue is on one closed loop. The loop runs through the middles of the squares, up, down, left and right, and never crosses or touches itself.

  4. Clue squares stay out

    A clue square is never shaded and never on the loop. An arrow still counts the shaded squares beyond another clue square.

  5. One solution

    A good Yajilin can be solved in exactly one way, and logic finds it. There is never a need to guess.

The colored 2 counts the shaded squares to its left, up to the edge. The clue square on the way is never shaded.

Solve your first Yajilin

A 5×5 Easy puzzle from our generator with five arrows. The steps under the grid solve it a few squares at a time. Try it yourself first, then compare with the steps.

Tap a square to shade it, again for a dot on the loop, again to clear it. Drag from square to square to draw the loop. Keys: arrows move, Space shades, Shift and an arrow draws a line.

  1. Step 1

    The arrows of the bottom row

    The 1 in row 5, column 2 points left at a single square, so row 5, column 1 is shaded. The 2 in row 5, column 4 points left too. Past the clue square, which is never shaded, it sees only row 5, columns 3 and 1: both are shaded.

  2. Step 2

    Around the shaded squares

    The squares above the two shaded squares are on the loop. Row 4, column 1 has the edge on its left, so the loop leaves it up and right. Row 4, column 3 has a clue square above it, so the loop leaves it left and right.

  3. Step 3

    The 1 pointing down

    The 1 in row 2, column 4 points down at row 3, column 4 and row 4, column 4. Row 4, column 4 has a line now, so it is on the loop: row 3, column 4 is the shaded square. Beside it, row 3, column 5 can only go up and down, and row 4, column 4 can only go right.

  4. Step 4

    The 1 pointing right

    The 1 in row 2, column 2 points right at row 2, columns 3 and 5. Row 2, column 5 has a line, so row 2, column 3 is shaded. The 1 in row 3, column 3 points up at it and now has its shaded square, so row 1, column 3 is on the loop.

  5. Step 5

    Along the top row

    Row 1, column 3 has the edge above and a shaded square below, so the loop runs left and right. The squares beside it have clues below them, so the loop runs on to the corners, and each corner turns down: row 1, column 1 down to row 2, column 1, and row 1, column 5 down to row 2, column 5.

  6. Step 6

    Close the loop

    Row 2, column 1 has a clue on its right, so the loop goes on down to row 3, column 1 and the ring is closed. Row 3, column 2 and row 5, column 5 are left with no way in: both are shaded. Every arrow counts its shaded squares, none of them touch, and one loop runs through every other square. Solved.

What the arrows give away

An arrow can only shade its free squares: not a clue square, not a square on the loop, not a square beside a shaded one. As shaded squares never touch, a few free squares in a row often leave no choice. This is what an arrow leaves its free squares when they lie in one run.

The arrow and its free squaresIt leavesWhy
0, any squaresAll on the loopNone of them may be shaded, and a square that is neither shaded nor a clue is on the loop.
1, one free squareIt is shadedThe shaded square has nowhere else to go.
1, two free squaresNothing sure yetEither one can be the shaded square. Wait for a line or a shaded neighbor.
2, three free squares1st and 3rd shaded, 2nd on the loopTwo shaded squares need a gap between them, and three squares leave room for one gap only.
2, four free squaresNothing sure yetThey fit three ways: 1st and 3rd, 1st and 4th, or 2nd and 4th.
3, five free squares1st, 3rd and 5th shadedThree shaded squares with a gap between each take all five.

Count the free squares only

An arrow counts past other clue squares, but a clue square is never shaded, and neither is a square on the loop or beside a shaded square. Cross those out first: an arrow along a busy row often has just one or two free squares left.

The edge and the clues are walls

A corner square on the loop always turns, and a square with a clue on one side has one way less. Read the walls before the loop: they tell where the loop must go.

Every shaded square feeds the loop

The squares beside a shaded square are on the loop, unless they hold a clue. Each new shaded square gives the loop up to four squares, and often the lines through them.

The order to work in

Every Yajilin, small or large, is solved in the same loop. Go down this list and start again from the top each time you shade a square.

  1. Read every arrow: a 0 puts its squares on the loop, and an arrow that needs every free square shades them.

  2. Put the loop through the squares beside each shaded square.

  3. Give every loop square its two lines: a corner turns, and a square with two open sides uses both.

  4. Shade every dead end: a square the loop can enter from one side only.

  5. Read the arrows again: one that has all its shaded squares clears the rest of its row or column.

  6. Never close a small loop, and count the room for shaded squares along each arrow.

  7. Still stuck: suppose a square shaded or on the loop and follow it until something breaks.

10 Yajilin solving techniques

From a full arrow to a what-if on a single line, in the order you need them. Each one is shown on a real puzzle from our Yajilin generator, at the moment the move applies.

  • shaded earlier
  • shaded in this move
  • a line or a dot of this move
  • on the loop since this move
  • the squares the move reads
  • look here
  • no line
  • only supposed
  • a rule breaks

Easy: the arrows and the way of the loop

Easy puzzles are solved with these six moves alone, and every harder Yajilin comes back to them after each other move. Two of them read the arrows, four follow the loop: a square on the loop needs exactly two ways out.

An arrow that has all its shaded squares

When an arrow already sees as many shaded squares as its number, no other square in its direction is shaded: the loop runs through all of them. A 0 does this from the start.

The 1 in row 2, column 2 points up at a single square, so row 1, column 2 is shaded. The 1 in row 1, column 1 points right along the whole row and now sees its one shaded square. Columns 3 to 7 of row 1 are not shaded, and as they hold no clue the loop runs through all five.

An arrow that needs every free square

Count only the squares an arrow can still shade: not a clue square, not a square on the loop, not a square beside a shaded one. When that count equals the shaded squares it still needs, shade them all.

The 3 in row 1, column 6 points down column 6. Two of the squares below it hold clues, row 3 and row 5, and a clue square is never shaded. That leaves rows 2, 4 and 6, and the arrow needs three: all three are shaded.

Around a shaded square

Two shaded squares never touch, so the squares beside a shaded square are not shaded. Unless they hold a clue, the loop runs through each of them, and it never enters the shaded square itself.

The 1 in row 4, column 5 points down at two squares, and row 6, column 5 already has a line of the loop, so row 5, column 5 is the shaded one. Its neighbors to the left, to the right and below are not shaded and hold no clue: the loop runs through all three.

Two ways out

The loop enters and leaves every square it visits. A loop square with only two open sides uses both, so a corner square on the loop always turns. A square that already has two lines takes no more.

The 0 in row 1, column 1 puts the rest of row 1 on the loop. Row 1, column 6 is the corner: the edge of the grid closes its top and its right, so the loop can only leave it to the left and down. It must leave twice: both lines are drawn.

A dead end is shaded

A square the loop can enter from one side only cannot be on the loop: it would have no way out. A square that holds no clue and is not on the loop is shaded.

Row 3, column 3 has clue squares above, below and to its right. The loop could only come in from row 3, column 2 and would have no way out, so the square is not on the loop. It is shaded.

No small loops

The loop is one ring. A line that would join the two ends of the same piece of loop while other loop squares are still outside it would close a smaller ring, so that line is not there.

The loop already runs from row 2, column 2 through row 2, column 1, up to row 1, along it to column 3 and down to row 2, column 3. A line between row 2, columns 2 and 3 would close this ring of six squares, and squares further down are on the loop too. There is no line between them.

Medium: count the room

Medium puzzles stop at moments where none of the easy moves applies. Then count how many shaded squares fit along an arrow: as they never touch, a run of free squares holds at most every second one.

Room for the shaded squares

A run of k free squares in a row holds at most (k + 1) ÷ 2 shaded squares, rounded down. When an arrow needs as many as its runs can hold, every run of odd length is shaded on its first, third, fifth … square, with the loop between.

The 3 in row 3, column 6 points left at five free squares in a row. Three shaded squares that never touch fit into five squares one way only: shaded, gap, shaded, gap, shaded. So row 3, columns 5, 3 and 1 are shaded, and the loop runs through columns 4 and 2.

Hard: look two moves ahead

Hard puzzles add one more move: suppose a square shaded, or on the loop, and follow it for two rounds of the easy moves. If a rule breaks, the square is the other way.

A short what-if

Suppose a square is on the loop (or shaded) and make the moves that follow at once. If two shaded squares touch, an arrow counts wrong, a square has no way out or a small loop closes, the square is the other way.

Row 3, column 3 sits between two clue squares, one above and one below. Suppose it is on the loop: it can only go left and right, to row 3, columns 2 and 4, and those are the two ends of the same piece of loop. The two lines would close a ring of twelve squares while row 4 still has loop squares outside it. So row 3, column 3 is not on the loop: it is shaded.

Expert: follow a what-if to the end

Expert puzzles need a what-if followed as far as it goes, on a square or on a single line of the loop. Each one is still logic: the result is kept only when the other way breaks a rule.

Try a square and follow it

Suppose a square is shaded (or on the loop) and follow every sure move until the grid is stuck or a rule breaks. If it breaks, the square is the other way.

Row 6, column 6 is a corner. Suppose it is shaded. Its neighbors in row 5, column 6 and row 6, column 5 then have two ways out each, and both turn into row 5, column 5, which gets its two lines. Row 4, column 6 gets its second line from below too. Row 4, column 5 is on the loop, but the clue above it and the full squares to its right and below leave it one way out. So the corner is not shaded: it is on the loop.

Try a line and follow it

When every square is tried and none breaks, try one side of a loop square: a line, or no line. If one way breaks a rule, the side is the other way.

Row 4, column 6 is on the loop, and with the clue on its left it can still go up, right or down. Suppose there is no line down. Then it must go up and right, to row 3, column 6 and row 4, column 7, and those two are already joined through row 3, column 7: a ring of four squares closes while the rest of the loop is outside it. So the line down from row 4, column 6 is there.

Practice puzzles

6 Yajilins from our generator, from Easy to Expert. Each is solved with the moves of this guide; the hint button names the arrow, the square or the side where the next move is.

Puzzle 1

6×6 Easy with five arrows. Start with the 0 and the 2.

Tap a square to shade it, again for a dot on the loop, again to clear it. Drag from square to square to draw the loop. Keys: arrows move, Space shades, Shift and an arrow draws a line.

Puzzle 2

8×8 Easy, the size of an Easy page in our books. Many 0s: the loop takes most of the grid.

Tap a square to shade it, again for a dot on the loop, again to clear it. Drag from square to square to draw the loop. Keys: arrows move, Space shades, Shift and an arrow draws a line.

Puzzle 3

7×7 Medium. Somewhere it stops: count the room along an arrow.

Tap a square to shade it, again for a dot on the loop, again to clear it. Drag from square to square to draw the loop. Keys: arrows move, Space shades, Shift and an arrow draws a line.

Puzzle 4

8×8 Medium with eleven shaded squares to find.

Tap a square to shade it, again for a dot on the loop, again to clear it. Drag from square to square to draw the loop. Keys: arrows move, Space shades, Shift and an arrow draws a line.

Puzzle 5

8×8 Hard. It needs a short what-if at least once.

Tap a square to shade it, again for a dot on the loop, again to clear it. Drag from square to square to draw the loop. Keys: arrows move, Space shades, Shift and an arrow draws a line.

Puzzle 6

8×8 Expert. It needs a what-if followed to the end.

Tap a square to shade it, again for a dot on the loop, again to clear it. Drag from square to square to draw the loop. Keys: arrows move, Space shades, Shift and an arrow draws a line.

Want more? Make a fresh page with the Free Yajilin Puzzle Generator and print it, with its answers.

Five mistakes that cost the most time

Shading two squares side by side

Shaded squares may meet at a corner but never along a side. Before you shade a square, look at its four neighbors.

Counting only the squares near the arrow

An arrow counts every shaded square in its direction, all the way to the edge of the grid, past other clue squares. A shaded square at the far end counts as much as the one next to it.

Closing the loop too early

A ring that closes while other loop squares are still outside it is wrong. Before you draw the line that closes a ring, check that every loop square is on it.

Running the loop through a clue

Clue squares are walls: never shaded and never on the loop. A loop square next to a clue square has one way less, which is often the move you need.

Guessing

A guess can survive for a long time and break much later. Every Yajilin on this page is solved with the moves of the guide, and a what-if keeps a result only when the other way breaks.

Yajilin levels and sizes

A bigger grid takes longer, but what sets the level is the logic a Yajilin needs. This is how our book generator makes its four levels, and the grid each one uses by default.

LevelIn the gridMoves it needs
Easy 8×8 grid9 to 17 arrows, 5 to 15 shadedThe arrows, the squares beside shaded ones, two ways out, dead ends and no small loops.
Medium 10×10 grid16 to 26 arrows, 9 to 21 shadedThose, then counting the room along an arrow.
Hard 10×10 grid15 to 26 arrows, 8 to 23 shadedAll of those, then a short what-if.
Expert 10×10 grid12 to 22 arrows, 8 to 21 shadedAll of those, then what-ifs to the end, on squares and on lines.

The arrows and shaded squares are the fewest and the most in 150 puzzles of each preset; the grid can be set from 6×6 to 12×12, Expert up to 10×10. Kids books keep to Easy and Medium on grids from 5×5 to 8×8; senior books go up to Hard on grids up to 10×10.

Yajilin words

Square
One box of the grid. It is shaded, on the loop or a clue square.
Clue square
A square with a number and an arrow. It is never shaded and never on the loop.
Arrow
Points along a row or a column. Its number counts the shaded squares that way, up to the edge.
Shaded square
A square filled in black. Shaded squares never share a side.
Loop
The one closed line through the middles of all the other squares.
Line
One piece of the loop, between the middles of two neighboring squares.
Free square
A square that can still be shaded: not a clue square, not on the loop, not beside a shaded square.
Dead end
A square the loop could enter from one side only. It cannot be on the loop, so it is shaded.
Small loop
A ring that closes before it holds every loop square. The rules allow one loop only, so it never happens.
What-if
Supposing a square shaded or on the loop, or a line, and following sure moves until something breaks; also called a trial.

Questions and answers

What are the rules of Yajilin?

Some squares hold a number and an arrow: the number tells how many shaded squares lie in that direction, up to the edge of the grid. Shade squares so that every arrow is right and no two shaded squares touch side by side, then draw one closed loop through the middles of all the other squares that hold no clue.

How do I start a Yajilin?

Read the arrows first: a 0 puts every square it points at on the loop, and an arrow that needs every free square shades them. Then put the loop through the squares beside each shaded square, turn it in the corners and shade the dead ends.

Does Yajilin go by other names?

Sometimes. Yajilin (ヤジリン in Japanese) first appeared in the Japanese magazine Puzzle Communication Nikoli in 1999. Its name joins yajirushi, the Japanese word for arrow, with an English word read as link or ring, so some English sources call it Arrow Ring. The rule is always the same: shade the squares the arrows count, then draw one loop through every other square.

Does an arrow count the shaded squares behind another clue?

Yes. An arrow counts every shaded square in its direction up to the edge of the grid. Another clue square in the way is never shaded itself, so it does not count, but the squares past it do.

Can shaded squares touch at a corner?

Yes. Two shaded squares may meet at a corner; they only may not share a side.

Does the loop have to go through every square?

Through every square that is not shaded and holds no clue. The loop is one closed ring, it moves up, down, left and right, and it never crosses or touches itself.

Do you ever have to guess in Yajilin?

No. A good Yajilin has one solution that logic reaches. Every puzzle on this page is solved with the moves of this guide, and our generator checks each puzzle with the same kind of moves before it goes into a book.

What makes a Yajilin hard?

The logic it needs more than the size. Easy puzzles let you go one square at a time from the arrows and the walls; Medium ones need counting the room along an arrow; Hard ones a short what-if, and Expert ones a what-if followed to the end.

How big can a Yajilin be?

Our books make grids from 6×6 to 12×12, Expert up to 10×10, and kids books start at 5×5. The default grids are 8×8 for Easy and 10×10 for Medium, Hard and Expert.

Yajilin on a printed page

A puzzle page and its answer key page, as they come out of a Yajilin book.

Yajilin puzzle page
A Yajilin puzzle page
Yajilin answer key page
An answer key page from the back of the book

Make your own Yajilin book

Print-ready Yajilin books for Amazon KDP, Easy to Expert on grids up to 12×12, one solution per puzzle and the answer key with the loop drawn in. Yajilin books are in every plan, Starter included, and in the free trial.

Yajilin book generator

Just one page? Free Yajilin Puzzle Generator