Tents and Trees Puzzle puts you in charge of a tidy campsite. Trees are already planted on a grid, and every tree needs exactly one tent right beside it. Campers want privacy, so no two tents may touch, not even at the corners, and numbers along the edges say how many tents go in each row and column. Tents and Trees Puzzle is part of Simon Tatham’s Portable Puzzle Collection.

Rules of the campsite

  • One tent per tree. Each tent sits directly above, below, left or right of a tree. Diagonal does not count. You must be able to pair every tree with its own tent.
  • Tents need space. Two tents may never be neighbors in any of the eight directions.
  • Counts must match. The number beside each row and below each column is the exact number of tents in that line.

Squares that cannot hold a tent can be marked as grass, which keeps your board readable. When every rule holds, the grid flashes. The Type menu has 8x8, 10x10 and 15x15 grids at Easy or Tricky.

Tents and Trees Puzzle Controls

Controls for Tents and Trees Puzzle
ActionKeyboardMouseTouch
Place a tent (or clear a square)Arrow keys to move, then EnterLeft-click a blank squareTap a blank square
Mark a square as grass (or clear it)SpaceRight-click a blank squarePress and hold a blank square
Turn a whole stretch of blank squares to grassShift + arrowsRight-drag along a row or columnPress and hold, then drag along the row or column
Turn squares to grass, tents includedCtrl + arrows——
New game, undo, redoN, U, RMenu buttons above the gridMenu buttons above the grid

The logic skills it builds

This puzzle mixes counting with matching. The row and column numbers work like a budget: if a row needs two tents and only two places are possible, both are tents. The tree pairing is a matching problem, the same idea behind assigning students to lab partners so nobody is left out.

You also learn to work by elimination. Most progress comes from marking where tents cannot go until the right spots are the only ones left.

How to crack a board

  1. Grass out squares far from trees. A square with no tree directly beside it can never hold a tent.
  2. Clear the zero lines. A row or column marked 0 is all grass, and a right-drag fills it fast.
  3. Wrap each tent in grass. All eight neighbors of a placed tent are off limits.
  4. Find trees with one open side. That side must hold the tent.
  5. Compare counts to spaces. When the open spots in a line equal the number it needs, they are all tents.
  6. Mind shared spots. If two trees can only use the same square, one of them must get a tent somewhere else.

Before You Press Play

Undo is unlimited, and Solve is there if you want to check. A small Easy grid takes a few minutes, while 15x15 Tricky can take half an hour. For another neighbor-counting grid, try Light Up Lamp Puzzle, or balance rows in Unruly Black and White.

Tested and updated: