Back to Blog

Advanced Sudoku Techniques: X-Wing, Swordfish & XY-Wing Explained

Master advanced sudoku solving techniques including X-Wing, Swordfish, and XY-Wing patterns. Step-by-step examples to break through difficult puzzles.

Moving Beyond the Basics

If you have been solving sudoku puzzles for a while, you have probably hit a wall where basic techniques like scanning, naked singles, and hidden singles are no longer enough. Medium and hard puzzles often require advanced strategies to crack. The three most important advanced techniques are X-Wing, Swordfish, and XY-Wing. Mastering these patterns will unlock puzzles that once seemed impossible and give you a serious edge when competing on Sudoku Rival.

Understanding Candidate Elimination

Before diving into advanced techniques, it is essential to understand that they all share one goal: eliminating candidates. Unlike basic methods that directly place a number, advanced techniques remove possibilities from cells. By narrowing down candidates, you eventually reveal naked or hidden singles that allow you to fill in cells. Think of advanced techniques as powerful filters that clear away the noise so the answer becomes visible.

The X-Wing Technique

What Is an X-Wing?

An X-Wing pattern occurs when a specific candidate number appears in exactly two cells in each of two different rows, and those cells line up in the same two columns. The four cells form a rectangle on the grid. When you find this pattern, you can safely eliminate that candidate from all other cells in those two columns. The logic is elegant: the number must occupy two of the four corners diagonally, so it cannot appear elsewhere in those columns.

How to Spot an X-Wing

Start by examining your pencil marks for a single number. Look at each row and find rows where that number appears as a candidate in exactly two cells. If you find two such rows and the candidate cells share the same two columns, you have an X-Wing. Mark the four corner cells mentally — the candidate in those columns outside the rectangle can be eliminated. Practice scanning for this pattern number by number until it becomes second nature.

X-Wing Example

Imagine the number 5 appears as a candidate in only two cells in Row 2 (columns 3 and 7) and only two cells in Row 8 (also columns 3 and 7). These four cells form a rectangle. The number 5 must go in either R2C3 and R8C7, or R2C7 and R8C3. Either way, columns 3 and 7 are covered, so you can remove 5 as a candidate from every other cell in columns 3 and 7. This elimination often triggers a chain of simpler deductions.

The Swordfish Technique

What Is a Swordfish?

Swordfish is an extension of the X-Wing pattern across three rows and three columns instead of two. A candidate number appears in two or three cells across three different rows, and all those cells fall within the same three columns. When this pattern is found, you can eliminate that candidate from all other cells in those three columns. The underlying logic is the same as X-Wing but applied to a larger structure.

How to Spot a Swordfish

Finding a Swordfish requires careful examination of your pencil marks. Choose a candidate number and look at each row. Identify rows where that number appears as a candidate in only two or three cells. If you can find three such rows where all candidate cells fall within the same three columns, you have a Swordfish. The pattern does not need to be a perfect 3x3 rectangle — some intersections may be empty. What matters is that the candidates in those three rows are confined to those three columns.

Swordfish Example

Suppose the number 7 is a candidate in Row 1 at columns 2 and 5, in Row 4 at columns 2 and 9, and in Row 7 at columns 5 and 9. All candidates fall within columns 2, 5, and 9 — a Swordfish. You can now remove 7 from every other cell in columns 2, 5, and 9. This technique is harder to spot than X-Wing because the shape is less regular, but with practice, you will learn to recognize it quickly.

The XY-Wing Technique

What Is an XY-Wing?

An XY-Wing involves three cells, each containing exactly two candidates. One cell is the "pivot" and the other two are the "pincers." The pivot shares one candidate with each pincer, and the two pincers share a common candidate that the pivot does not have. The result: any cell that can see both pincers (shares a row, column, or box with both) can have that common candidate eliminated. This powerful technique often breaks open stuck puzzles.

How to Spot an XY-Wing

Look for a cell with exactly two candidates, say X and Y. This is your potential pivot. Now look for two cells that the pivot can see — one containing candidates X and Z, and another containing candidates Y and Z. The Z candidate is the one shared by both pincers but absent from the pivot. Any cell that can see both pincers cannot contain Z. The beauty of this pattern is that regardless of the pivot's value, one pincer will always contain Z, eliminating it from cells seeing both pincers.

XY-Wing Example

Cell R1C1 has candidates {3, 5}. Cell R1C7 has candidates {3, 8}. Cell R5C1 has candidates {5, 8}. R1C1 is the pivot, seeing both pincers. The shared candidate is 8. Any cell that sees both R1C7 and R5C1 cannot contain 8. If R5C7 is such a cell, remove 8 from its candidates. This one elimination can cascade into solving multiple cells.

Putting It All Together

The key to mastering advanced techniques is practice and patience. Start by looking for X-Wings since they are the easiest to spot. Once comfortable, move to Swordfish and then XY-Wings. Use Sudoku Rival to practice on Hard and Expert puzzles where these techniques are essential. Competing against other advanced solvers will push you to recognize patterns faster. Remember, every advanced technique is just a way to eliminate candidates — the puzzle still comes down to finding singles one cell at a time.

Practice Makes Perfect

Try this approach: solve a hard puzzle without guessing. When you get stuck, systematically search for X-Wing patterns number by number. If none appear, try Swordfish, then XY-Wing. This disciplined approach will train your brain to recognize these patterns naturally. On Sudoku Rival, advanced technique mastery is what separates good solvers from great ones. Challenge yourself with Expert difficulty and watch your pattern recognition skills sharpen with every game.

Play Sudoku Rival Free

Play Sudoku Rival Free

Related Articles