Fish Patterns in Sudoku: X-Wing to Jellyfish
Sudoku fish patterns are a family of advanced solving techniques based on a single candidate digit appearing in a specific alignment of N rows and N columns. They include the X-Wing (N=2), Swordfish (N=3), and Jellyfish (N=4), and are essential for solving hard puzzles. These patterns allow you to eliminate candidate digits from other cells that are not part of the pattern, providing a powerful logical deduction. Mastering fish is a key skill for any player moving beyond intermediate strategies.
The Core Fish Logic: N Rows and N Columns
The fundamental principle behind all fish patterns is a perfect alignment between rows and columns for a single candidate digit. The rule states: if a specific digit appears as a candidate only in exactly N rows, and those appearances are limited to exactly N columns, then you have a fish. Conversely, the same logic works if you swap 'rows' and 'columns'. This perfect 'N by N' alignment creates a locked situation. The digit must be placed once in each of those rows and once in each of those columns. This means the digit cannot appear anywhere else in those N columns (or rows, depending on your perspective). This logic is the engine behind all eliminations for X-Wing, Swordfish, and Jellyfish patterns.
X-Wing: The 2x2 Fish
The X-Wing is the smallest and most common fish pattern, where N=2. You look for a single candidate that appears exactly twice in two different rows, and those four candidate cells line up to form the corners of a rectangle across two columns. Because the digit must appear once in each of the two rows, it must occupy two of the four corner cells, which forces it to also appear once in each of the two involved columns. This means you can eliminate that candidate from all other cells in those two columns. The pattern can also be found with the roles of rows and columns swapped. Our hint engine finds that the X-Wing is the most frequently applicable fish technique and is a critical step in many How to Solve Hard Sudoku strategies.
Swordfish: The 3x3 Fish
A Swordfish extends the X-Wing logic to three rows and three columns (N=3). For a single candidate, you need to find three rows where the candidate appears, and the collective positions of those candidates are restricted to exactly three columns. The candidate cells do not need to be present in every row-column intersection. They just need to be confined to that 3x3 grid. The logic is the same: the digit must be placed in each of the three rows, which forces a placement in each of the three columns. Therefore, you can eliminate that candidate from all other cells in those three columns. Spotting a Swordfish is more challenging due to its size, but it follows the exact same rule as the X-Wing.
- Look for a candidate that appears 2 or 3 times in a row, and see if you can find two other rows with a similar, overlapping column pattern.
- Start your search in rows or columns where the candidate is most constrained, as this increases the chance of a clean fish pattern.
Jellyfish: The Rare 4x4 Pattern
The Jellyfish is a fish pattern where N=4, involving four rows and four columns. It is the largest standard named fish and is quite rare in published puzzles. The rule is identical: find a candidate that is confined to exactly four rows and, within those rows, its appearances are limited to exactly four columns. When this alignment is found, you can eliminate that candidate from all other cells in those four columns. Due to its complexity, a Jellyfish is often a last-resort technique. Most players get stuck here because the pattern is difficult to visualize. However, if you have systematically applied an X-Wing and Y-Wing without success, scanning for a Jellyfish might crack an extremely tough puzzle.
How to Spot Fish Patterns Systematically
Searching for fish requires a methodical approach focused on one candidate digit at a time. First, choose a candidate (e.g., all the '7's). Next, decide if you will scan by rows or by columns. For a row-based scan, look at each row and note which columns contain that candidate. Your goal is to find a set of N rows where the candidate appears only in the same N columns. The candidate can appear 2, 3, or 4 times in each row, but the total set of column indices across your chosen rows must number exactly N. Practice is key. Start by mastering the X-Wing pattern, as its 2x2 size is easiest to recognize, and then scale up your search for larger patterns.
- Use pencil marks! A complete set of candidate notes is absolutely required to spot fish patterns.
- If you find a potential fish but see the candidate outside the pattern in one of the key columns, the pattern is not valid. The confinement must be perfect.
Key Facts
- ▪A fish pattern in Sudoku is an advanced technique based on a single candidate digit being perfectly aligned across N rows and N columns.
- ▪The X-Wing is a 2x2 fish pattern, the most common and foundational member of the fish family.
- ▪A Swordfish is a 3x3 fish pattern, applying the same logic as an X-Wing but across three rows and three columns.
- ▪A Jellyfish is a 4x4 fish pattern, the largest standard named fish and a rare find in most puzzles.
- ▪The core elimination rule: if a fish pattern is found, the candidate can be removed from all other cells in the involved columns (or rows).
- ▪Fish patterns work both ways: you can look for N rows aligned in N columns, or N columns aligned in N rows.
- ▪Complete pencil marks are a prerequisite for finding any fish pattern, as you must see all instances of a candidate.
- ▪The candidate cells in a fish pattern do not need to be filled in every intersection of the involved rows and columns.
- ▪Mastering X-Wing and Swordfish is often sufficient to solve the vast majority of hard Sudoku puzzles that require advanced logic.
Frequently Asked Questions
What is the simplest fish pattern in Sudoku?
The X-Wing is the simplest fish. It involves one candidate appearing in exactly two rows and two columns, forming a rectangle. This allows you to eliminate that candidate from the rest of those two columns or rows.
How is a Swordfish different from an X-Wing?
A Swordfish scales the X-Wing logic from 2 to 3. It involves one candidate confined to three rows and three columns. The elimination rule is the same, but it applies to three columns or rows instead of two.
Are Jellyfish patterns common in Sudoku?
No, Jellyfish patterns are quite rare. Most hard puzzles can be solved using X-Wing and Swordfish techniques. A Jellyfish (4x4) is typically only needed for the most extreme, ultra-hard puzzles.
Can fish patterns be found for numbers other than 2, 3, and 4?
Yes, the logic extends to higher N (Squirmbag for N=5, Whale for N=6, etc.), but these are extraordinarily rare in practice and not standard named techniques for most solvers.
Do I need to know fish patterns to solve hard Sudoku?
Yes, for many hard and expert-level puzzles, fish patterns like X-Wing and Swordfish are essential. They provide the logical deduction needed when simpler techniques like singles and pairs are exhausted.