Swordfish

Used in Classic 9×9 Sudoku, 6×6 Sudoku, Difference Sudoku, Irregular 6×6 Sudoku, Relational 6×6 Sudoku, Odd/Even Sudoku, Windowed Sudoku, Killer Sudoku, Skyscraper Sudoku 5×5 and Triangle Sudoku.

A swordfish is an X-wing over three lines instead of two. A digit's candidates in three rows all fall inside the same three columns, so those three rows supply the digit to all three columns, and the rest of each column can't have it.

The rows don't need three candidates each. Two cells in a row is enough, as long as every candidate in the three rows sits somewhere in the three columns. That's what makes a swordfish harder to see than an X-wing: there's usually no neat 3×3 grid of candidates, just a scatter of six to nine cells that happens to fit three columns.

Why it works: each of the three rows needs the digit once, and the three placements land in three different columns, since a column can't hold the digit twice. Three placements in three columns means each column gets its copy from inside the pattern. Everywhere else in those columns, the digit goes. As with the X-wing, rows and columns can swap roles.

An example

A classic 9×9 board with candidates. The 7 is ringed in seven cells spread over the first, fourth and eighth rows, all in the second, third and fifth columns. It is struck from five other cells of those columns.

Look at where 7 can go in three rows.

  • The first row: the second, third and fifth columns.
  • The fourth row: the second and third columns.
  • The eighth row: the third and fifth columns.

Every one of those cells is in the second, third or fifth column. Each row places its 7 in a different one of those three columns, so all three columns get their 7 from these seven cells. That clears 7 from five cells outside the pattern:

  • in the second column, the third row's cell (1, 6, 7, 9 to 1, 6, 9) and the ninth row's (1, 7, 8 to 1, 8),
  • in the third column, the second row's cell (2, 7, 9 to 2, 9) and the ninth row's (1, 4, 7, 8 to 1, 4, 8),
  • in the fifth column, the second row's cell (2, 6, 7 to 2, 6).

Neither the fourth row nor the eighth row has a candidate in all three columns, which is normal, and the pattern isn't a pair of X-wings either: no two of the rows share the same two columns.

How to look for them

  • Work one digit at a time, and only after the X-wings. List, for each row, the columns where the digit can go, and keep the rows with two or three. A swordfish is three of them whose columns, put together, number only three.
  • Repeat with columns. Three columns whose candidates fall in three rows clear the rest of those rows.
  • Expect it late. A swordfish needs a digit thinned to two or three places in several lines, which happens once most of its copies are on the board.

Where it fits

The swordfish is an Expert technique here, alongside the X-wing and the XY-wing. It's the rarest of the three: it can only show up once a digit has thinned out to two or three places in several lines. When it does, it often clears more than an X-wing would. Like the X-wing, it uses only lines, so it can appear on every variant, the triangle's three line directions included.

More techniques

  • Naked Single (Obvious Single): A cell with only one candidate left must hold it. The first thing to look for in any sudoku, and how to spot it quickly.
  • Hidden Single: When a digit fits in only one cell of a row, column or box, it goes there, even if that cell has other candidates.
  • Naked Pair (Obvious Pair): Two cells in a house with the same two candidates take both digits between them, so the rest of the house can't have either.
  • Naked Triple (Obvious Triple): Three cells in a house whose candidates use only three digits take all three, even when no cell shows all of them.
  • Hidden Pair: Two digits that fit in only the same two cells of a house claim those cells, so every other candidate there can go.
  • Hidden Triple: Three digits confined to the same three cells of a house claim them, clearing out every other candidate in those cells.
  • Pointing Pairs and Triples: A digit confined to one line inside a box (or to one box along a line) can be removed from the rest of that line or box.
  • X-Wing: A digit confined to the same two columns in two rows (or the same two rows in two columns) can be cleared from the rest of those lines.
  • XY-Wing (Y-Wing): Three two-candidate cells that bend around a pivot: whichever way the pivot goes, one wing holds the shared digit, so no cell seeing both wings can.