# Quick Yajilin Puzzles: Scatter and Gather

• Draw a line to make a single loop.
• Lines pass through the centers of cells, horizontally, vertically, or turning. The loop never crosses itself, branches off, or goes through the same cell twice.
• The numbers with arrow show how many black cells there are in the direction of the arrow.
• The number 0 without arrow denotes nothing (it can be treated as a "white wall").
• The loop does not pass through the black cells or the cells with numbers, and black cells cannot touch horizontally or vertically. The loop has to pass through all of the other (white) cells.
• Some parts of the loop are already given by the blue lines.
• I'm starting to think "quick" is a relative term here :) Love these puzzles!
– Jafe
Commented Sep 21, 2019 at 16:22
• These are great puzzles. Are they hard to generate? It would be a great addition to the Tatham Puzzle collection! Commented Sep 22, 2019 at 2:36
• @DrXorile Indeed IMO this will be a great type of puzzles Tatham Puzzle would have, but I myself find it hard to generate the puzzle (..maybe because handmade puzzles usually should be aesthetical.) However, looking at they are able to generate "hard" puzzles like slant, (various types of) slitherlink, and tracks; it may get a chance! :) Commented Sep 22, 2019 at 2:52
• Lately, this series starts to attract downvotes; maybe because I post them too often? Any feedback will be appreciated! ^^ Commented Sep 22, 2019 at 9:24

Second puzzle

There are many cells on the border which can't be walls because that would create a dead-end cell next to them (i.e. an empty cell with only one open side). Mark those as empty.

There can't be a wall-empty-wall sequence on the border, because the middle cell would be a dead end. That solves the 2s at the top and along the right-hand border.

Fill in the line in empty cells which have only two open sides.

The bottom 2 is trivially solved now.

This cell cannot be empty, because in that case the only way to fill the 2 to the right of it would make a dead end in between.

So it has to be a wall.

Some more cells that can't be walls because they would create a dead end.

So all those have to be empty.

Now, the 2 near the top-right corner has three possibilities for wall cells. The adjacent cells can't both be walls, so this cell has to be a wall.

Regardless of how the 2 is filled, neither of the cells marked pink can be a wall or there'd be either two adjacent walls or a dead end somewhere.

So mark those cells empty.

Now, there is no way to put three walls in four adjacent cells, so the cell directly next to the 3 must be a wall.

Only one way to fill this 2 now.

Having the two cells marked pink be walls would make a dead end. So the only legal way to complete the 3 is if the circled cell is a wall.

Marking that cell a wall solves the entire bottom-left corner. Fill in the loop.

There's a dead-end cell on row 3, column 2. That has to be a wall, and marking it a wall allows resolving the loop even further.

Neither of these cells can be a wall. Making the topmost one a wall would create a dead end, and making the bottom-most one a wall would create a closed loop. Also, there needs to be a line between these cells to prevent a closed loop.

The loop can't continue this way, because we'd force a closed loop near the top-left corner.

So it must continue upwards. This solves the entire left part of the grid.

We need to get both ends of the loop out of the bottom-right corner, so none of these cells can be walls. In fact, we can already fill in how the ends of the loop come out since there are only two spaces where they can go.

Like so.

Both of the pink cells cannot be walls, because that would force a dead end. So the circled cell must be a wall to satisfy the 2 below.

This solves the entire bottom-right corner.

This cell would be a dead end, so it has to be a wall.

Now, the same story with this cell. This solves the rest of the grid.

Final solution.

• Great work, a really nice and neat write-up! :) Commented Sep 21, 2019 at 22:56

The first puzzle was definitely trickier:

I did it by hand (as you can tell from the image), so I don't have @jafe's neat write-up. It did not require any guessing and used similar methods. After the start, I did the right-hand few columns, then the bottom few rows and filled in the rest from there. The deductions are very neat and were typically of the form: "if this square were filled in, then blah blah blah, so that square must have a line through it" (which I marked up as a dot).

I did number 2 independently but not as quickly as @jafe.

Great puzzle! Thanks

• Difficulty-wise the first puzzle is harder, and actually there exists a very nice observation to make this easier, hint: rot13(gel gb ynory gur pryyf nf purpxreobneq r.t. jvgu erq naq oyhr gura n inyvq ybbc jvyy cnff gur fnzr ahzore bs erq naq oyhr pryyf) :) , nevertheless well done! :D Commented Sep 22, 2019 at 9:23