Clever Quest Lab ← Games

Tents

Give every tree its own tent. Tents never touch, and the numbers count the tents in each row and column.

0:00Time
–Puzzle
0/0Tents
0Hints

Tents

Put one tent beside each tree (above, below, left or right). Tents never touch, not even at a corner, and the numbers say how many tents each row and column holds.

Click or tap a cell to switch it between tent, grass and empty; drag to paint grass. Keyboard: arrows move, Space switches, T tent, G grass.

Click a cell to switch it between tent, grass and empty; right-click or drag paints grass. Keyboard: arrows move, Space switches, T tent, G grass.

Tap a cell to switch it between tent, grass and empty; drag your finger to paint grass on several cells.

Size
Level

TapClickClick or tap

Click or tap: tent → grass → empty · drag paints grass · a finished row or column number fills its row or column with grass · keys: arrows, Space, T tent, G grass, Shift+arrow paints grass

Click: tent → grass → empty · right-click or drag: grass · click a finished row or column number to fill its row or column with grass · keys: arrows, Space, T tent, G grass, Shift+arrow paints, L fills, H hint, C check, P pause

Tap: tent → grass → empty. Drag to paint grass. Tap a finished row or column number to fill its row or column with grass.

Runs on your device. Nothing you type or record is uploaded. Keeps working without a connection while the page is open. Works with touch. Saves the puzzle in progress with marks and clock (not the undo history), your settings, best times and which puzzles you have played on this device.

Added

How to play

Tents, also known as Tents and Trees, is played on a square grid with some trees in it. Pitch tents in the empty cells so that every tree gets exactly one tent of its own directly beside it: above, below, to the left or to the right, never diagonally. Each tent belongs to exactly one tree, so there are as many tents as trees. A tent may stand next to two trees, but it counts for only one of them.

Tents never touch each other, not even at a corner, and the numbers above the columns and to the left of the rows say how many tents each column and row holds. Grass marks are optional notes; the puzzle is solved as soon as all the tents are right. Choose a size from 6×6 to 12×12 and a level, then press Start. The clock stops while you pause or switch to another tab.

Controls

A grey number with a tick has exactly its tents; a red ring around a number means too many tents or too little room left. A red ring with an exclamation mark flags touching tents (also joined by a red bar), a tent with no tree, tents that would have to share a tree and trees with no room left for their tents.

Check crosses out wrong tents and wrong grass in red until your next move. Hint first removes one wrong mark if there is one; otherwise it makes one logical step, outlines the changed cells and says why, or reveals one tent of the solution when no simple step is left.

How it works

Each tent belongs to one tree, so

tents = trees = sum of the row numbers = sum of the column numbers

Because tents never stand side by side, a run of L free cells in a row holds at most ⌈L / 2⌉ tents. When a row needs exactly that many, the tents in a run of odd length sit on every other cell, starting at both ends.

Pairing is a matching problem: put the trees on one side, the tents on the other and join each tree to the tents beside it. Hall’s marriage theorem says that every tent can get a tree of its own exactly when every group of tents has at least as many neighbouring trees as it has tents. The page checks this after every move with an augmenting-path matching algorithm and marks a group that fails, such as two tents whose only tree is the same one.

Every puzzle has exactly one solution. The 1,440 puzzles (120 for each size and level) were made by placing random tents that do not touch, adding a tree beside each one and keeping only grids that a logic solver could finish. Easy needs only counting and the rules above. Medium also needs you to try every way a row’s tents can fit. Hard sometimes needs a short “what if”: assume a tent, follow the consequences and find a contradiction. A separate program then searched every possible tent placement row by row and found exactly one solution for each puzzle. Each puzzle can also appear rotated or mirrored in eight ways.

Tents was invented around 1995 by the Dutchman Leon Balmaekers and first appeared in a Dutch puzzle magazine.

Tips and strategy

Frequently asked questions

Do I have to fill every cell with grass?

No. Grass is a note for yourself. The puzzle counts as solved the moment the tents form a correct solution.

Sources