Guides

Swordfish and Jellyfish

The swordfish and the jellyfish are bigger X-wings. They use three or four lines instead of two, and they are harder to spot, but the logic is exactly the same. If you are comfortable with the X-wing, you already understand them.

If the X-wing is new to you, read our X-wing guide first. These patterns need full notes; see pencil marks if you don't use them yet.

The idea

Take one digit. Find three rows where that digit's candidates all fall within the same three columns. Each of those rows needs its digit somewhere in those columns, and each column can hold the digit only once. So the three rows use up the digit in all three columns between them. No other square in those three columns can hold it.

That's a swordfish. Four rows confined to four columns is a jellyfish. Two rows in two columns is the X-wing. As always, rows and columns can swap places.

The detail that trips people up: a row doesn't need a candidate in all three columns. It can have two, as long as every candidate it has is within the three. What matters is that, taken together, the rows only reach into three columns.

A real swordfish

Here is one from a puzzle with exactly one solution, at a point where every simpler technique, including X-wings, had been used up.

3
246
5
46
8719
24
1
2468
48
46
397
246
5
9
46
72518
46
3
532968471
4913756
28
28
876124359
65
48
79321
48
7
148
35
14
29
48
6
2
14
98
14
6537
A swordfish on 4: rows 3, 8 and 9

Highlighted: 7 the pattern · struck through: 7 removed

Look at the digit 4: in row 3, only columns 2 and 8; in row 8, only columns 2, 5 and 8; in row 9, only columns 2 and 5. Those three rows only reach into columns 2, 5 and 8. Some rows have only two spots, which is fine. So the three 4s of those rows fill columns 2, 5 and 8 between them, one in each.

That removes 4 from every other square in columns 2, 5 and 8: row 1, column 2, row 2, column 2 and row 2, column 8. After that, the next step our solver found was an XY-wing.

To check one of these by hand, suppose row 1, column 2 were the 4. That column would then be closed to 4 everywhere else, so the three base rows would have only the other two columns for their three 4s. Two columns can hold only two 4s, so one row would be left with nowhere for its 4. The assumption fails, and the candidate can go. The same counting argument works for any fish: n lines need n copies of the digit, and they only have n crossing lines to put them in.

A real jellyfish

Jellyfish are rare. This one was the simplest step available in its puzzle.

2389
123789
1279
389
13
65
289
4
35689
389
569
3589
241
89
7
2589
1289
4
589
7
18
238
6
38
24
24
3
18
579
18
6
589
789
579
13
62
37
4
135
16
57
49
38
378
58
2
7
1234
12
6
1348
9
248
1258
158
3469
582
134
13
46
7
19
2469
1249
1269
7
148
5
2468
3
189
A jellyfish on 8: rows 1, 2, 4 and 5

Highlighted: 7 the pattern · struck through: 7 removed

The digit is 8: in row 1, only columns 1, 2, 4 and 8; in row 2, only columns 1, 2, 4 and 8; in row 4, only columns 4 and 8; in row 5, only columns 1 and 2. Four rows, and between them they only reach columns 1, 2, 4 and 8. Those four rows need four 8s, and the four columns can take exactly four. So the 8s of columns 1, 2, 4 and 8 are all accounted for by these rows.

That removes 8 from row 3, column 1, row 3, column 2, row 3, column 4, row 6, column 8 and row 7, column 8. After that, a naked single appears: row 6, column 8 is 5.

How rare are they?

While writing these guides our solver worked through 1,076 newly generated puzzles, always using the simplest technique available. An X-wing was needed in 30 of them, a swordfish in 6, and a jellyfish in 1. So learn the X-wing well, keep the swordfish in mind for tough puzzles, and treat a jellyfish as a lucky find.

How to look for them

  1. Pick a digit that still has a lot of candidates.
  2. List, for each row, the columns where it can go. Ignore rows where it's already placed or where it has more than three (for a swordfish) or four (for a jellyfish) spots.
  3. Look for three rows whose columns combine to only three columns. Writing the column numbers down helps. In the example above, the rows' columns were 2 and 8; 2, 5 and 8; 2 and 5, which combine to just 2, 5 and 8.
  4. Then do the same for columns.
  5. Check for something to remove in the cleared lines. Many swordfish exist but clear nothing.

Mistakes to avoid

Practise

Our expert puzzles are the place to look. For a pattern of a different kind, built from squares with two candidates, see the XY-wing. The techniques page lists every technique in the order you will need them.