What is Line of Sight?
Line of Sight is a puzzle about blocking views. A few cells of the grid carry numbers. Each number says how many cells you can see if you stand on it and look straight along its row and its column. Your task is to blacken some cells so that every number sees exactly its count, while the black cells and the white area still obey a couple of tidiness rules. The same puzzle exists under the name Kuromasu, and in Simon Tatham’s collection it is titled Range. This Line of Sight puzzle is a fine step up for anyone who likes Minesweeper-style counting but wants a tidy geometric twist.
This page sets out the rules, explains the controls in PsyGames, walks through a small example and lists common mistakes.
The goal and the rules
Shade some cells black so that all of the following are true:
- numbered cells stay white;
- no two black cells share a side (a diagonal contact is not restricted by the rules);
- all white cells form one connected region, joined horizontally and vertically;
- every number equals the count of white cells visible from it along the four straight directions, stopping at the grid edge or at a black cell. The numbered cell counts itself once.
Notice how the two global conditions work against each other. Black cells are what shorten the views, but they cannot touch and they cannot cut the white area apart. Most deductions come from this tension.
How to play Line of Sight in PsyGames
Tap a cell to black it out. The second action puts a dot on the cell, which means “empty”: you are telling yourself the cell is definitely white. The dot is helpful because it removes cells from consideration and keeps you from blackening them by accident. For a quick look at other puzzles with a similar flavour, visit the all games catalog.
A worked example
Begin with the smallest number you could imagine. A 1 would count only itself, so in every direction the very next cell would have to be black or the edge of the grid. That walls the numbered cell in and cuts it off from every other white cell, which breaks the connection rule, so, as the original rules point out, a puzzle never contains a 1. The smallest number you will actually see is 2.
Now take a 2 on the left edge. It sees itself plus one more white cell. The cell above or below or to the right of it can be that second white cell, but only one direction may hold white; the cell after that must be black. If a dot already tells you that the cell to the right is white, you know the cell beyond it in that row is black and the cells above and below the number are black as well.
Once a black cell is placed, apply the neighbours rule: all four cells around it must be white, so you can dot them. That is where the dots become really useful.
Solving tips and common mistakes
- Start with small numbers. A puzzle never contains a 1, but a 2 narrows the field a lot: only one of its neighbours can be white.
- Count including the number. The most common mistake is forgetting that the numbered cell itself adds one to the count.
- Dot the neighbours of black cells. Because black cells never touch along a side, every neighbour of a black cell is white.
- Watch connectivity. Before blackening a cell, ask whether it would close off a white pocket from the rest of the grid, especially near a corner.
- Use large numbers as upper bounds. A big number means long unobstructed lines, so cells that lie along those lines tend to be white.
- Count in both axes. A number sees along a row and along a column; add the two parts together and do not stop at one direction.
How Line of Sight differs from similar puzzles
Light Up also uses lines of view, but there you place lamps and light the whole grid; here you place black cells, and the numbers count visible white cells. Minesweeper counts hidden items in the eight neighbouring cells, while Line of Sight counts along whole rows and columns until something blocks the view. Mosaic counts blacks within a fixed 3×3 block; here the reach of a number depends on where the black cells end up.
Line of Sight in PsyGames
In PsyGames this puzzle sits in the Counting group and is based on Simon Tatham’s Portable Puzzle Collection (MIT licence), where it is called Range. The in-app description states that a number says how many cells are visible from it along its row and column, with a tap to black out a cell and a second action to place a dot for “empty”. Any Line of Sight puzzle there follows the four rules listed above. The full list of puzzles is at all games.