What is Rectangles?
Rectangles is a grid puzzle about cutting a board into boxes. A few squares carry numbers, the rest are empty, and you have to divide the whole board into rectangles so that the numbers explain themselves: each box contains one number, and that number is the box’s area. Outside PsyGames the genre is also known as Shikaku, and the open puzzle collection that this version comes from simply calls it Rectangles.
Nothing here is a matter of luck. In the original collection a puzzle has exactly one solution by default, so its layout can be reached by reasoning about space, and the satisfaction comes from watching a crowded board slowly split into tidy pieces.
The goal and the rules
Divide the grid into rectangles so that:
- every rectangle contains exactly one numbered square;
- the area of the rectangle, meaning the number of squares inside it, equals that number;
- every square of the grid belongs to a rectangle, and the rectangles do not overlap.
A “rectangle” includes a square block, and it includes a one-cell-wide strip. A 1 is always a single cell on its own. Because areas are products of a width and a height, the number tells you the possible shapes: a 4 can be a 1-by-4 strip, a 4-by-1 strip or a 2-by-2 block; a 7, being prime, can only be a strip seven cells long.
In the desktop version a rectangle of the right size is shaded as soon as you complete it, which gives quick feedback while you work. When all the boxes are drawn and every cell is inside one, the puzzle is solved.
How to play Rectangles in PsyGames
Here is how to play Rectangles in the app. You draw a box by dragging a finger from one corner of it to the opposite corner, and the frame appears under your finger. A single tap takes one cell on its own, which is how you mark a lone 1 or fix a cell you are already sure about.
In the original desktop collection you can also toggle individual edges and erase the contents of a box without changing its borders; the app’s description mentions only the drag and the single-cell tap, so those are the gestures to use. Start with the cells you are certain of and extend outwards.
A worked example
Picture a single row of five cells. The first cell holds a 2 and the last holds a 3. In a one-row grid every rectangle is a strip, so the 2 must cover cells one and two, and the 3 must cover cells three, four and five. The areas add to five, which is exactly the number of cells, as they must.
Now a small two-row case. A 4 sits in the left-hand column of a grid that is only two cells tall. The box can be a 2-by-2 block, or a strip of four cells along the top or bottom row. A strip would only be possible if the row had room; if the board edge or a neighbouring number already blocks it, the 2-by-2 block is the only choice left. This kind of “what shapes still fit here?” elimination is the whole game in miniature.
Solving tips and common mistakes
A Rectangles puzzle rewards patience more than speed. Work through these habits.
- List the factor pairs. For every number, write down the shapes it could take. Primes are strips, and a number whose strip would run off the board loses that option immediately.
- Start with the 1s and the tight corners. A 1 closes itself. A number in a corner has fewer ways to grow than one in the middle.
- Two numbers need a wall between them. If two clues are close together, a boundary must run somewhere between them. Often only one position for that boundary keeps both areas right.
- Look for cells that only one box can reach. An empty square that lies within reach of just one number, in terms of the shapes that number can take, belongs to that number.
- Check the leftovers. Before you commit, count the squares that are not yet in any box. If they cannot be gathered into rectangles that each hold one clue, one of your earlier boxes is wrong.
- Do not draw a box that contains two numbers, even for a moment. It can never be correct, so redraw it at once instead of trusting it to be fixed later.
- Mind the areas, not the widths. A common slip is to draw a box that looks about right but is one square too large. Count the cells.
The original generator has a setting that stretches a small puzzle over a larger board with extra rows and columns. A value around 0.5 tends to make puzzles harder, and a value that is too high leaves only a few big rectangles, so the puzzle becomes trivial; the app does not say whether it uses this setting.
How Rectangles differs from similar puzzles
Filling Regions also asks you to divide a grid into areas by numbers, but there each number tells you the size of the region it sits in, and a region may take any shape. In Rectangles, every region must be a true rectangle and must hold exactly one clue.
Palisade cuts the grid into regions of one size, with clues counting the borders around cells, so the information is about edges rather than areas. Galaxies is another divide-the-board game, where each region must be symmetrical around a marked point; it is a good next step if you like spatial puzzles.
Rectangles in PsyGames
In PsyGames, Rectangles is part of the Counting group. The puzzle is based on the open collection of Simon Tatham (Simon Tatham’s Portable Puzzle Collection, MIT licence). The full set of titles is listed among all games, and if you want a Rectangles puzzle with a similar feel, Filling Regions is the closest cousin.