# Skyscrapers

> Fill in building heights; the numbers outside count the buildings you can see.

Also called: Towers

Kind of puzzle: Numbers

Web page: https://inkit.games/puzzles/skyscrapers

## Origin

Masanori Natsuhara invented Skyscrapers in 1992, and it first ran in the Japanese magazine Puzzler as Building City Puzzle.

## Credit

- Inventor: Masanori Natsuhara (1992)
- Source: [WPC wiki](https://wpcunofficial.miraheze.org/wiki/Skyscrapers)

## Rules

1. Every row and every column has each height once.
   - ✓ Right: No repeats
   - ✗ Wrong: Row repeats
2. A number outside counts the buildings you'd see looking in from there: taller ones hide shorter ones behind them.
   - ✓ Right: See 2 each way
   - ✗ Wrong: Only 2 seen

## Worked example: Skyline

A 4×4 Skyscrapers puzzle, with exactly one solution.

The givens, as inkit's puzzle engine writes them (cells are [row, column] from 0 at the top left):

```json
[{"at":"edge","side":"right","cell":[1,3],"kind":"skyscraper","value":3},{"at":"edge","side":"bottom","cell":[3,3],"kind":"skyscraper","value":3},{"at":"cell","cell":[1,0],"kind":"number","value":2},{"at":"cell","cell":[0,1],"kind":"number","value":3}]
```

The solution, a line per row:

```
1 3 2 4
2 4 3 1
4 2 1 3
3 1 4 2
```

Play it: https://inkit.games/g/skyscrapers-1

## Playing on inkit

Tap a cell, then a number (or type it). Pencil adds small notes.
