What is the Skyscraper technique in sudoku?

A Skyscraper is a one-digit pattern built from two columns (or two rows) in which the digit fits in exactly two cells each. One cell of each column sits in the same row, the floor. The two other cells are the rooftops. Because the floor row can hold the digit only once, at least one rooftop must hold it, and every cell that sees both rooftops loses that candidate.

It is a close relative of the X-Wing: an X-Wing whose top has slipped out of line. This guide explains the logic, walks through a real puzzle where a Skyscraper on the digit 5 removes two candidates and places a 6, shows the row version and the turbot-fish family it belongs to, and gives you a routine for finding it.

11223344556677889925273619847457891547236467562835719295419726368186178349523829195264671725942593761572783578138472569477262563498124345
  • Pattern
  • Removed candidate
Floor in row 7, rooftops in row 1, column 1 and row 3, column 7: the 5 goes from the two cells that see both.

The logic in plain words

Pick a digit, say 5. Find two columns where the 5 can go in only two cells each. Each column is a tower: it has a bottom cell and a top cell, and the 5 must be in one of them.

Now suppose both towers have their bottom cell in the same row. That row can't hold two 5s, so at most one bottom cell is the 5. If the left bottom cell isn't the 5, the left rooftop is. If the right bottom cell isn't the 5, the right rooftop is. At least one bottom cell is empty of 5, so at least one rooftop holds the 5. Possibly both.

You don't know which. But any cell that sees both rooftops, sharing a row, column or box with each, would clash with whichever rooftop holds the 5. So that cell cannot be 5.

Worked example: a Skyscraper on the 5

The diagram shows a real position with every candidate filled in. Follow the digit 5.

  • Step 1: find the two towers. In column 1, the 5 fits only in row 1, column 1 and row 7, column 1. In column 7, it fits only in row 3, column 7 and row 7, column 7.
  • Step 2: find the floor. Both towers have a cell in row 7: row 7, column 1 and row 7, column 7. Row 7 takes the 5 only once.
  • Step 3: name the rooftops. The other ends are row 1, column 1 and row 3, column 7. At least one of them holds the 5.
  • Step 4: find cells that see both rooftops. Row 1, column 9 sees the left rooftop through row 1 and the right rooftop through box 3. Row 3, column 3 sees the right rooftop through row 3 and the left rooftop through box 1. Both lose their candidate 5.
  • Step 5: collect the payoff. Row 3, column 3 had only 5 and 6, so it is now a 6. Row 1, column 9 drops from 4, 5, 7 to 4 and 7.

Note that the rooftops sit in different rows (row 1 and row 3). If they shared a row too, the four cells would form a rectangle, and you would have an X-Wing instead.

The board is a real Classic puzzle from Sudoku by Joseph, where Classic has six levels from Casual to Diabolic.

Rows instead of columns, and the turbot-fish family

The pattern works turned on its side. Take two rows where a digit fits in exactly two cells each, with one cell of each in the same column. That column is the floor, the two other cells are the rooftops, and every cell that sees both rooftops loses the digit.

In solver terms, each tower is a strong link: if one end isn't the digit, the other end must be. The floor is a weak link: the two floor cells can't both be the digit. A chain of strong link, weak link, strong link on a single digit is called a turbot fish, and the Skyscraper is the turbot fish whose two strong links run parallel, both in columns or both in rows. Its sibling, the Two-String Kite, uses one strong link in a row and one in a column, joined through a box. The conclusion is always the same: one of the two chain ends holds the digit, so cells seeing both ends can't.

Common mistakes

  • Using a tower with three candidates. Each column must have the digit in exactly two cells. With a third candidate, the rooftop is no longer forced.
  • Eliminating from the floor row. The floor tells you nothing about the rest of row 7. Row 7, column 3 and row 7, column 9 both still carry a 5, and they keep it.
  • Counting a cell that sees just one rooftop. A cell must share a row, column or box with both rooftops. Seeing one of them proves nothing.
  • Hoping both rooftops are wrong. The logic guarantees at least one rooftop holds the digit, not exactly one. Never place the digit in a rooftop on this basis alone.

How to spot a Skyscraper

  1. Choose one digit

    Like the X-Wing, the Skyscraper is a single-digit pattern. Scan one digit at a time.

  2. List columns with exactly two candidates

    Go column by column and note every column where the digit fits in exactly two cells.

  3. Look for two that share one row

    Compare those columns. If two of them have one cell each in the same row, and their other cells are in different rows, you have a floor and two rooftops.

  4. Clear what sees both rooftops

    Remove the digit from every cell that shares a row, column or box with both rooftops. Then repeat the scan with rows instead of columns.

Frequently asked questions

Is the Skyscraper a kind of X-Wing?

It is closely related. Both use two lines where the digit fits in exactly two cells. In an X-Wing both pairs of cells line up into a rectangle; in a Skyscraper only one end lines up, which gives a weaker but still useful elimination.

What is the difference between a Skyscraper and a Two-String Kite?

A Skyscraper uses two parallel strong links, two columns or two rows. A Two-String Kite uses one row and one column whose ends meet in the same box. Both are turbot fish.

Can a Skyscraper place a digit?

Only indirectly. It removes candidates, and sometimes a cell is left with one. In the example, row 3, column 3 becomes a 6.

Look for Skyscrapers on real puzzles

12 variants, a Daily Challenge with streaks — and never any lives, coins or energy bars. The download is free.