How to play Skyscrapers

Skyscrapers is a logic puzzle played on a square N×N grid, for example 4×4 or 5×5. Each cell holds a building with a height from 1 to N, and every row and column must contain each height exactly once. The numbers around the edge tell you how many buildings you can see when you look along that row or column from that side; taller buildings hide shorter ones behind them.

The rules

  • Fill every cell with a height from 1 to N.
  • Each row and each column contains every height exactly once, like a small Sudoku without boxes.
  • A clue outside the grid gives the number of buildings visible from that point, looking into the row or column.
  • A building is visible only if it is taller than every building in front of it.

A worked example

Take a row of a 4×4 puzzle that reads 2, 4, 1, 3 from left to right. From the left you see the 2, then the 4, which is taller; the 1 and the 3 are hidden behind the 4. So the left clue is 2. From the right you see the 3, the 1 is hidden, then the 4 is visible and the 2 is hidden. The right clue is also 2.

Key deductions

  • Clue 1: only one building is visible, so the tallest building (N) stands right next to that clue.
  • Clue N: every building is visible, so the row or column reads 1, 2, 3 … N in order from that side.
  • Any clue c: the first building from that side can be at most N − c + 1 tall. For example, with a clue of 3 in a 5×5 grid, the first building is 3 or lower.
  • Opposite clues a and b: the tallest building is seen from both sides, so a + b can never be more than N + 1. When a + b equals N + 1, the tallest building's position is fixed.

How to solve

Begin with the clues of 1 and N, which place buildings immediately. Then use the maximum-height rule above to rule out heights near every clue, and write the remaining possibilities as notes. Because each height appears once per row and column, every placed building also removes options from its row and column, exactly as in Sudoku. Larger grids and fewer clues make the puzzle harder, because you must combine information from two or more sides before a cell is certain.

Frequently asked questions

How is Skyscrapers different from Sudoku?

In both, every row and column contains each number once. Skyscrapers has no 3×3 boxes; instead it has visibility clues around the edge. So in Sudoku you reason from the cells, while in Skyscrapers you reason by looking along rows and columns from the outside.

Which clue gives the most information?

Clues of N and 1. Of the 24 possible orderings of a 4×4 row, only 1 gives a clue of 4 and 6 give a clue of 1. A clue of 2 tells you the least: 11 of the 24 orderings show two buildings. Middle clues say little on their own and become strong when combined with the clue on the opposite side.

Do you ever have to guess in Skyscrapers?

Not in a good puzzle with a unique solution. When you are stuck, reread the edge clues and check whether putting a height in a cell would break the clue on the opposite side; usually only one height survives.

Are notes useful?

Yes. Writing the heights that are still possible in each cell makes it much easier to combine information from two different edges, especially on larger grids. Ozerlyn has a notes mode and 3 hints per puzzle on the web.

Where should beginners start?

Start with the Easy level and look for clues of 1 and N first: they place buildings straight away. Then apply the rule that the first building next to a clue c can be at most N − c + 1 tall.

Learn more

Play now

Easy, medium and hard Skyscrapers puzzles, free in your browser.