Tents technique · Medium
Line Squeeze
A Tents line squeeze happens when a row or column needs exactly as many tents as its free cells can take without two sitting side by side. With no room to spare, every lone free cell is a tent and a run of three is tent, grass, tent. It is the step that most often turns an Easy-looking grid into a Medium one.
Published
Why it works
Two tents can never be neighbours, so inside one row a run of free cells cannot be filled completely. A single free cell takes one tent. Two free cells side by side still take only one. Three in a row take two, at the ends, and four take two as well. In general a run of L cells takes L divided by two, rounded up.
Add those maximums along the line. If the total is larger than the number of tents the line still needs, nothing is forced. If it is exactly equal, every run must give its maximum, and that pins down the runs of odd length: a lone cell is a tent, and a run of three or five alternates starting with a tent at each end. Runs of even length stay open, because a pair can put its one tent in either cell.
Worked example from a Medium daily
This is the daily puzzle from 18 November 2026, a Medium 10×10. Two opening steps have run: column 5 has a 0 and is all grass, and the cells with no tree beside them are grass too. Now look at row 7, whose number is 3. Four cells in it are still free: column 1, column 3, and columns 9 and 10.
Columns 1 and 3 are lone cells, separated by the tree in column 2, so they can give one tent each. Columns 9 and 10 are a pair and can give one between them. One plus one plus one is three, which is exactly what the row needs. So row 7 column 1 and row 7 column 3 are tents now, and the pair keeps its secret: one of its two cells will be the third tent. Line Fill could not make this move, since the row has four free cells for three tents.
When to look for it
Look whenever Line Fill fails by one or two cells. A line with four free cells and three tents to place, or five and three, is a candidate: check whether some of those free cells are neighbours. A line with a high number has the least slack, and so does one cut into short pieces by trees and grass.
The technique is common. In the first 222 Medium grids our generator made, the solver used it in 206, and in 109 it was the hardest step of the whole grid. After a squeeze, remember the pairs it leaves behind. Each one holds exactly one tent, which is the starting point for Line Shadow.
Common Mistakes
Counting a pair as two. Two free cells side by side hold one tent, never two, so a row of four free cells may have room for only three or even two tents.
Filling an even run. When the count is tight, a pair still has two ways to hold its tent. Only lone cells and the ends of runs of three or five are certain.
Forgetting tents already placed. Compare the runs with what the line still needs, which is its number minus the tents it holds.
Frequently Asked Questions
What is a line squeeze in Tents?
It is a counting step for a row or column with no room to spare. When the line needs as many tents as its free cells can hold without two side by side, each lone free cell must be a tent.
How many tents fit in a run of free cells?
Half the run's length, rounded up. One cell holds one tent, two hold one, three hold two, four hold two and five hold three, because neighbouring cells cannot both be tents.
Does a line squeeze work on columns too?
Yes. The argument uses only the rule that tents never sit side by side, which holds along a column exactly as along a row. Count the runs of free cells from top to bottom instead.
Sources
- Simon Tatham's Portable Puzzle Collection: Tents: no two tents adjacent horizontally, vertically or diagonally; the numbers count tents per row and column
- How PencilGrid puzzles are made: the technique ladder the hints follow
- Daily Tents archive: the 18 November 2026 grid in the figure
Sources last checked on 2026-11-15.
Written and checked by the maker of PencilGrid, a puzzle enthusiast and software engineer who also builds the generator and solver behind every grid on the site.
Every technique on this page is one the site's solver actually uses: puzzles are generated offline, checked for a single solution, and graded by the hardest step they need. How PencilGrid puzzles are made →
More Tents Pages
Related puzzles: Star Battle · Nonogram · Light Up