Sudoku Offline

The Swordfish in sudoku

Three rows that share the same three columns for one digit clear that digit from the rest of the columns.

A Swordfish is an X-Wing with three lines. In three rows a digit fits only in cells from the same three columns, two or three cells per row. The three rows fill those columns with the digit between them, so you can erase it from all other cells of the three columns.

716548416769118765244532817692965477285658629628543928938238235929235244537372825839391338138134491934134173437397913137
Swordfish. In rows 2, 7 and 8 the 3 fits only in columns 2, 6 and 9. Those rows use up the 3 in each of these columns. Remove 3 from R1C9, R6C9 and R9C9.

It does not need nine cells

A full Swordfish would have the digit in all nine crossings of the three rows and three columns. Most have fewer. A row may be missing one of its three places, so six, seven or eight cells are enough. What counts is that no row has a place outside the three columns.

Three rows need three different columns for their digit, and they have only three to choose from. Each column is therefore taken by one of the rows, whatever the order.

How to find a Swordfish

  1. Work with one digit. Skip digits placed six times or more. Their last three rows and columns form the whole pattern, so there is nothing left to erase.
  2. List the rows where the digit has two or three places, and write the column numbers next to each, for example row 2: 2, 6.
  3. Pick a row and add a second one. If together they use more than three columns, drop the second.
  4. Add a third row that brings no fourth column.
  5. Look for the digit elsewhere in the three columns and erase it.
  6. If nothing turns up, make the list for columns and erase along rows.

The list in step 2 saves time. A pattern spread over the board is hard to see, but column numbers such as 2 6, 6 9 and 2 9 add up to 2, 6 and 9 at a glance.

86322386974623851362841812436776312828461933812746671394528145794591457957579151547949479579575959594594595957575959
Another Swordfish. In columns 2, 5 and 9 the 5 fits only in rows 1, 4 and 6. Those columns use up the 5 in each of these rows. Remove 5 from R1C1, R1C4, R1C6, R4C4 and R6C1.

The common mistake

Most false Swordfish have a fourth column. One row has an extra place that was overlooked, often because its notes are incomplete, and the count no longer closes. Check all nine cells of each of the three rows again before you erase anything.

Another slip is to look only for rows with three places. Rows with two fit as well, and a search that skips them misses many Swordfish.

How often you will need one

Rarely. The table on sudoku difficulty levels counts the hardest technique of each puzzle in our bank, and the Swordfish is the least frequent one in Evil. Before you hunt for it, look for an X-Wing in the same list of column numbers (two rows with the same two), then for an XY-Wing.

Practice

Write the column numbers on paper first.

675328214385976327654126315167233821648336745745311914949898948797847958459498945795947959591212667271281912989282696829
In rows 4, 6 and 9 the 9 fits only in columns 3, 5 and 9. Those rows use up the 9 in each of these columns. Remove 9 from R1C5, R5C5 and R8C5.
928155319644762519629711452971642781256981761872453473476736782728383838454835373769686893858353493534526923636934343939
In rows 3, 8 and 9 the 3 fits only in columns 3, 5 and 9. Those rows use up the 3 in each of these columns. Remove 3 from R7C3, R7C5 and R7C9.
89154315348974795389358716395842853936478955713894892415376262672672626261261226712467124671261224246716716712122626
In columns 1, 5 and 9 the 2 fits only in rows 1, 3 and 4. Those columns use up the 2 in each of these rows. Remove 2 from R1C6, R3C7, R4C6, R4C7 and R4C8.

The solver names the rows and columns when a Swordfish is the next step, which is a way to check one you found in another puzzle.

Questions

What is the difference between an X-Wing and a Swordfish?

The number of lines. An X-Wing uses two rows and two columns, a Swordfish three and three. Both follow one digit.

Can a row of a Swordfish have only two places?

Yes. Each row needs two or three places, all within the same three columns.

Does it work with columns?

Yes. Three columns whose places lie in the same three rows clear the digit from the rest of those rows.

Is there a version with four lines?

Four rows and four columns make a Jellyfish. Our solver stops at the Swordfish, and no puzzle on this site needs more.

Keep reading