cools maths gamesSurprise me

Tents and Trees Puzzle

Place one tent beside each tree on a grid, with no tents touching and every row and column count satisfied.

Tents and Trees Puzzle title screen
  • Works on mobile
Report a problem

Tents and Trees Puzzle is a logic grid where you plan a campsite. Some squares hold trees, and each tree needs one tent set up on a square right next to it. Numbers on the edges tell you how many tents go in each row and column, and your goal is to place every tent so all the rules hold at once.

How Tents and Trees Puzzle Works

A tent must share a side with a tree, which means above, below, left or right. Being only diagonal to a tree is not enough. The number of tents always equals the number of trees, and you must be able to pair each tree with a tent of its own, though a tent may also border other trees.

No two tents may be neighbors, and that includes corners. The count beside each row and below each column is exact, so you need that many tents in the line, no more and no fewer. Mistakes such as touching tents or a broken count show up in red.

Squares that cannot hold a tent can be marked as grass. This keeps your reasoning visible as the board fills. The Type menu offers 8x8, 10x10 and 15x15 grids at Easy or Tricky, plus Custom sizes.

Your First Few Minutes

  1. Open the 8x8 Easy grid from the Type menu.
  2. Find any row or column with a 0 and right-drag across it to fill it with grass.
  3. Mark grass on every square that does not touch a tree’s side.
  4. Look for a tree with only one open neighbor and place its tent there.
  5. Put grass on all eight squares around each new tent.

Controls for Tents and Trees Puzzle

Keyboard, mouse and touch controls for Tents and Trees Puzzle
To do thisKeyboardMouseTouch screen
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 + arrowsnot usednot used
New game, undo, redoN, U, RMenu buttons above the gridMenu buttons above the grid

What It Trains

This puzzle is about ruling things out. You cross off squares that break a rule, then compare what is left against the counts. Later grids ask you to follow a chain, such as noticing that two trees compete for one square, so one of them must send its tent somewhere else.

Strategy Notes

  • Clear the zero lines right away. A 0 means the whole row or column is grass.
  • Grass anything not beside a tree. Those squares can never take a tent.
  • Ring each tent with grass. Its eight neighbors are now off limits.
  • Spot trees with one choice. If only one side is open, the tent goes there.
  • Match spaces to counts. A row needing two tents with exactly two separated openings gets a tent in each.
  • Check the pairings. Two trees sharing one possible spot cannot both use it.

Good to Know

You can play with a mouse, a keyboard cursor or touch, where press and hold marks grass. Undo has no limit. The puzzle is part of Simon Tatham’s Portable Puzzle Collection, and this site added touch support for holding and dragging. There is no sound.

Tents and Trees Puzzle questions and answers

How do I know the campsite is finished?

When every tent is in a legal spot, every tree has its own tent and all the row and column counts are exact, the grid flashes. There is no timer, so you can work at any pace.

Which grid should I try first?

Start with the 8x8 Easy preset. It is small enough to see the whole board at once. Move up to Tricky or the 10x10 and 15x15 sizes once the basic moves feel natural.

Can I get the answer if I am stuck?

Yes. The Solve button fills in the finished campsite. You can also undo as many steps as you like or restart the same grid to try a different line of thinking.

Do the corners count as touching?

Yes. Tents cannot be next to each other in any of the eight directions, so two tents meeting only at a corner still break the rule and are marked in red.

Games that use logic like Tents and Trees Puzzle

Different rules, same kind of thinking.

Try something from another shelf