Swordfish Sudoku Technique

Updated

A Swordfish is the three-line version of an X-Wing: a digit confined to the same three columns across three rows can be erased from every other cell in those three columns.

When a Swordfish applies

A Swordfish relaxes the X-Wing’s requirement in one useful way. An X-Wing needs exactly two candidate cells in each of two rows. A Swordfish needs three rows whose candidate cells for a digit, taken together, span exactly three columns — but no single row has to use all three columns itself. A row can have the digit in only two of the three columns, as long as the union across all three rows is exactly three columns and no row spills into a fourth.

That flexibility is also why Swordfish patterns are harder to spot than X-Wings. Instead of comparing two neat pairs of cells, a solver has to track a digit across three rows at once and confirm the column count stays at three. Once it does, the logic is identical to the X-Wing: one of the three rows supplies the digit to each of the three columns, so no other row can contribute it there.

As with the X-Wing, the pattern also runs on the column axis: three columns whose candidate cells for a digit span exactly three rows trap the digit just as tightly, eliminating it from those three rows elsewhere.

Worked example

The digit 8 is confined to columns 2, 8 and 9 across rows 5, 6 and 9. That traps 8 out of every other cell in those three columns, which the solver reports as eliminations at r4c2 and r4c9.
c1c2c3c4c5c6c7c8c9
r1953168742
r286273459591
r341759592836
r47489658915931459258
r5289164593595897
r634895271914968
r71538592159674
r81574381562159
r96294157135158358
Pattern cells
r5c2, r5c8, r6c2, r6c9, r9c8, r9c9
Eliminations
8 from r4c2, 8 from r4c9

In row 5, 8 can only go in r5c2 and r5c8. In row 6, it can only go in r6c2 and r6c9. In row 9, it can only go in r9c8 and r9c9. Collect the columns those six cells use: 2, 8, 2, 9, 8 and 9 — exactly three distinct columns, 2, 8 and 9, spread across exactly three rows. That is a Swordfish on 8.

Because rows 5, 6 and 9 between them must place 8 in columns 2, 8 and 9, no other row can hold an 8 in any of those three columns. r4c2 was carrying 4, 8 and 9 and loses the 8, leaving 4 and 9. r4c9 was carrying 5 and 8 and loses the 8, leaving 5 alone — which hands the next pass a naked single. No other cell in columns 2, 8 or 9 outside rows 5, 6 and 9 still had 8 as a candidate on this board, so those are the pattern’s only two eliminations.

How to spot a Swordfish

  1. Pick a digit and list its candidate cells per rowFor one digit, write down which columns still hold it in each row. Rows where the digit has four or more candidate cells are not useful.
  2. Look for three rows spanning three columnsFind three rows whose candidate columns for the digit, combined, total exactly three distinct columns. Each row can use two or three of them.
  3. Reject a fourth columnIf any of the three rows has a candidate in a column outside the shared set of three, the pattern does not hold. Every candidate cell in the three rows must sit in one of the three columns.
  4. Erase the digit from the rest of the three columnsRemove the digit from every other cell in the three columns, outside the three base rows, then repeat the search on the column axis.

Common mistakes

Swordfish FAQ

Do all three rows need candidates in all three columns?

No. Each row needs candidates in at least two of the three columns, and the union across all three rows must be exactly those three columns. Mixed coverage like two-three-two is the normal shape.

How is a Swordfish different from an X-Wing?

They are the same fish pattern at different sizes. An X-Wing uses two lines by two lines; a Swordfish uses three by three. The elimination logic — a digit trapped in a fixed set of cover lines — is identical.

Does a Swordfish always place a digit?

No, it is purely an elimination technique. It can, as in the worked example, strip a cell down to a single remaining candidate, which then becomes a naked single on the next pass.

What comes after a Swordfish in difficulty?

The Jellyfish, which is the same pattern stretched to four lines by four lines. Beyond four lines the pattern still exists in theory but becomes impractical to spot by hand.