What is Tents by the Trees?
Tents by the Trees is a camping-themed logic puzzle. A grid contains some trees, and your job is to put a tent next to every tree. Each tree gets exactly one tent, tents must keep their distance from one another, and the numbers around the grid tell you how many tents belong in each row and column. It is also known as Tents and Trees, and Simon Tatham’s collection of portable puzzles calls it Tents. The Tents by the Trees puzzle suits players who enjoy a mix of counting and pairing.
The following sections explain the rules, the controls in PsyGames, a worked example and some common pitfalls.
The goal and the rules
Place tents on some of the empty cells so that all of these conditions hold:
- the number of tents is equal to the number of trees, and each tree is paired with its own tent;
- a tent sits directly next to its tree, in a cell reached by one step horizontally or vertically, never diagonally;
- no two tents touch, and that includes touching diagonally at a corner;
- the number at the end of each row and each column equals how many tents that line contains.
A tent is allowed to touch other trees as well. The pairing only requires that every tree has a distinct tent beside it, so a tent standing between two trees can belong to either of them, but not to both.
How to play Tents by the Trees in PsyGames
Tap an empty cell to put a tent there. The second action marks the cell as grass, which is a way of writing down that no tent can stand there. The in-app summary says to put a tent by each tree, matching the counts on the edges. Grass marks are not part of the final answer, but they are helpful: the more cells you rule out, the easier it is to see what remains. When you want to try something different afterwards, the all games catalog has the whole set of logic puzzles.
A worked example
Look at a tree in a corner of the grid. It has only two cells next to it that exist on the board, so its tent will be in one of them. If the clue for the row of one of those cells is 0, that row holds no tent at all, so the other cell is the only choice: the tent goes there.
The same reasoning works for a tree with one free neighbour. If the cells on three sides of a tree are trees or already ruled out, the single remaining side gets the tent.
After you place a tent, spread grass. Because tents must not touch, all eight cells around a tent, the four next to it and the four diagonal ones, cannot hold another tent. Mark them as grass. That often creates new forced moves: a tree whose neighbours are all grass except one gives you the next tent.
Finally, use the totals. If a row clue is 2 and the row has only two cells that could still hold a tent, both must be tents. If a column already contains its full number of tents, mark the rest of the column as grass.
Solving tips and common mistakes
- Start with zeros. A row or column with the number 0 can be filled with grass immediately, and trees next to it must put their tents elsewhere.
- Count each tree’s options. Trees with a single possible cell are the quickest source of progress.
- Do not forget the diagonal ban. This is the rule players break most often; two tents on touching corners is not allowed.
- Check the pairing as a whole. Having a tent next to a tree is not enough if that tent is already the partner of a different tree and your tree has no tent left.
- Compare the totals. The numbers on the rows add up to the same value as the numbers on the columns, namely the number of tents; if your counts disagree, something is wrong.
- Use grass early. A marked cell is a decision you will not need to re-derive.
How Tents by the Trees differs from similar puzzles
Nonogram also puts numbers on the edges of the grid, but its numbers describe lengths of runs, while here they simply count tents in a line. Light Up has a similar non-interference rule, where lamps must not see each other; the tents’ rule is about touching instead. Minesweeper counts hidden items next to a revealed cell, but Tents asks you to build a layout that satisfies several counts at once and then pair it with the trees. And unlike Magnets, nothing here has two poles; each tent is a single piece.
Tents by the Trees in PsyGames
The puzzle sits in the Counting group of PsyGames. It is based on Simon Tatham’s Portable Puzzle Collection (MIT licence), where it appears as Tents. The in-app text says: put a tent by each tree, matching the counts on the edges; tap for a tent, and the second action marks grass. Every Tents by the Trees puzzle in the app follows the rules listed above. See the full list on the all games page.