# Aquarium

> Fill the outlined tanks with water that settles level; the numbers count the water in each row and column.

Kind of puzzle: Shading

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

## Origin

Naoki Inaba, a Japanese puzzle author, invented Aquarium in 2004 and first called it Aqua Place.

## Credit

- Inventor: Naoki Inaba (2004)
- Source: [WPC wiki](https://wpcunofficial.miraheze.org/wiki/Aquarium)

## Rules

1. Water settles: each tank fills from the bottom up, level all the way across.
   - ✓ Right: Settled
   - ✗ Wrong: Floating
   - ✗ Wrong: Not level
2. A number beside a row or above a column counts its water cells.
   - ✓ Right: 3 in the row
   - ✗ Wrong: Not 2

## Worked example: Fish Tank

A 6×6 Aquarium 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":"col","index":1,"kind":"total","value":3},{"at":"row","index":0,"kind":"total","value":3},{"at":"col","index":4,"kind":"total","value":0},{"at":"col","index":3,"kind":"total","value":5},{"at":"row","index":5,"kind":"total","value":0}]
```

The solution, a line per row (`#` is a marked cell (shaded, or whatever this type places in a cell), `.` is left empty):

```
..##.#
...#.#
.###..
.###..
.###..
......
```

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

## Playing on inkit

Tap a cell to fill it with water, again for ✕, again to clear.
