Shikaku Strategy: Factor the Number and Work the Borders (2026)
Try it yourself — play Shikaku now
Free in your browser, no download or sign-up.
js/engine.js, js/levels.js and js/main.js (Playnesta-original, MIT). This session re-ran the 67-check headless harness (outputs/gen-shikaku/harness.mjs) against the same bytes the live site serves; it passed. The 36 boards were produced by outputs/gen-shikaku/gen_levels.mjs, which accepts a board only when an exhaustive solver (capped at two solutions) proves exactly one solution. The game page covers dragging, the buttons and the rules; this page is the strategy layer. Shikaku (四角) is the common name of the puzzle type, used here the same way as Kakuro or Sudoku on this site.
1. What the 36 puzzles actually are
Shikaku is a rectangle-partition puzzle: the whole grid must be split into rectangles, every rectangle must contain exactly one number, and its area in cells (height × width) must equal that number. There is no timer pressure and no score multiplier: the puzzle is the deduction.
The library is frozen at 36 boards, twelve in each tier:
| Tier | Grid | Boards | Clues per board | Solution rectangles | Clue values present |
|---|---|---|---|---|---|
| Easy | 5×5 | 12 (1–12) | 9–11 | 9–11 | 1–5 |
| Medium | 7×7 | 12 (13–24) | 12–16 | 12–16 | 1–7 |
| Hard | 9×9 | 12 (25–36) | 14–18 | 14–18 | 1–10 |
Across all 36 boards there are 441 clues total (110 easy, 157 medium, 174 hard). Each clue is the area of its rectangle, so a clue of 6 can be a 1×6, 6×1, 2×3 or 3×2 rectangle (when it fits the grid), while a clue of 1 is always a single cell. The largest clue value in this library is 10 (it appears twice, both on hard 9×9 boards, as 2×5 or 5×2). The board is won when every cell is covered by exactly one legal rectangle. Each board has exactly one solution.
The timer starts on your first successful placement (a legal dragged shape released onto the board) or on Hint; Undo and Restart do not start the timer, and Restart resets it to 0:00. There is no time limit. Your best time per board and your solved set are stored only in this browser (pn-shikaku-best-v1, pn-shikaku-solved-v1). The left/right arrows move one board at a time by id (1–36), the size chip cycles Easy → Medium → Hard and opens the first unsolved board of that tier, ?puzzle=7 pins board 7 by number, and ?level=hard opens the hard tier. Hint paints one rectangle from the stored solution and counts itself; Undo steps back one shape (a whole-board snapshot, up to 120 stored); Restart clears the board.
2. The four rules of a legal shape
Every move is judged by validatePlacement in js/engine.js. A shape is legal only when all four hold:
- Inside the grid — no cell outside the board.
- Exactly one clue inside — a shape covering zero clues or two clues is rejected (
no-number/two-numbers). - Area equals the clue — height × width must equal the number inside (
area). - No overlap — it may not touch a cell already used by another rectangle (
overlap).
A one-cell shape is legal only on a clue of value 1. A shape can be legal and still be wrong: if it is not part of the unique solution, placing it can leave the rest of the grid impossible. That is a dead end, not an alternative answer. After every placement the game checks for a remaining solution rectangle that does not overlap your placed shapes; when none exists the status line says “Dead end — undo one shape and try another split.”
3. Why boundaries beat the middle
The tempting move on an empty board is to pick a large number in the middle and guess its shape. In a library where every board has one solution, that is the move you can usually postpone. Cells on the edge and in corners have fewer possible covering rectangles than cells in the middle, so boundary clues tend to force earlier.
Corners. In this library 43 clues sit in corner cells (23 easy, 10 medium, 10 hard). A corner cell can only be covered by a rectangle that reaches that corner, which sharply limits where the covering rectangle can extend. If the corner clue is small (1, 2, 3), its factor pairs are few and the rectangle is often forced by the board edge.
Edges. Another 184 clues sit on non-corner edge cells (50 easy, 71 medium, 76 hard). A clue on the border with a value that matches a strip along that edge is worth testing first: for example a 5 on a 5×5 board can only be 1×5 or 5×1, so if it lies on the top row the 5-cell strip along that row is a strong candidate.
Single cells. There are 20 clues of value 1 in the whole library (9 easy, 9 medium, 2 hard). A 1 is a forced single-cell rectangle. Place it immediately — it removes that cell from every neighbouring rectangle’s possible area.
Large values last. The largest values in this build are 8, 9 and 10, all on hard boards. A 10 allows only 2×5 and 5×2 on a 9×9 grid (2 factor pairs), a 9 allows 1×9, 9×1 and 3×3 (3 pairs), and an 8 allows 1×8, 8×1, 2×4 and 4×2 (4 pairs). Smaller clues such as 1 (1 pair), 2, 3, 5, 7 or 10 (2 pairs each on the grids where they appear) are often easier to pin down once the border is partly filled. Place the forced small shapes first; the larger numbers usually lose options as space disappears.
4. Factor pairs that actually appear on these boards
For a clue of value n, list the factor pairs (height × width) that fit inside the grid and that do not cover a second clue. The fewer pairs, the more forced the shape. These are the values present in the shipped 36-board library and the factor pairs that fit each tier’s grid:
| Value | Easy 5×5 | Medium 7×7 | Hard 9×9 | Count in library |
|---|---|---|---|---|
| 1 | 1×1 | 1×1 | 1×1 | 20 |
| 2 | 1×2, 2×1 | 1×2, 2×1 | 1×2, 2×1 | 75 |
| 3 | 1×3, 3×1 | 1×3, 3×1 | 1×3, 3×1 | 95 |
| 4 | 1×4, 2×2, 4×1 | 1×4, 2×2, 4×1 | 1×4, 2×2, 4×1 | 90 |
| 5 | 1×5, 5×1 | 1×5, 5×1 | 1×5, 5×1 | 38 |
| 6 | — | 1×6, 2×3, 3×2, 6×1 | 1×6, 2×3, 3×2, 6×1 | 72 |
| 7 | — | 1×7, 7×1 | 1×7, 7×1 | 10 |
| 8 | — | — | 1×8, 2×4, 4×2, 8×1 | 18 |
| 9 | — | — | 1×9, 3×3, 9×1 | 21 |
| 10 | — | — | 2×5, 5×2 | 2 |
A few reading notes:
- Primes are not always “the strongest” here. On these grids 2, 3, 5 and 7 each have exactly two factor pairs (the two orientations of a strip). They are strong when one orientation is blocked, but they are not automatically forced.
- 10 is more constrained than 8. Even though 10 is larger, it has only 2×5 and 5×2 on 9×9, while 8 has four possible factor pairs.
- Thin strips are legal. A 7 on a 7×7 board can be a full row or column; a 7 on a 9×9 board can be a 1×7 or 7×1 strip. Do not assume a rectangle must be “compact”.
- Value alone is not enough. A factor pair is usable only if that rectangle stays inside the grid, contains exactly that clue, and does not overlap a placed shape. Count before you drag.
5. Why Undo beats guessing
The build detects dead ends: freeSolutionRect returns null when every remaining solution rectangle overlaps a placed shape. Because this check runs after every placement, the status line tells you immediately when your current layout is no longer on the path to the unique solution. When that happens:
- Undo (U). It restores the previous whole-board snapshot (not just the last shape you touched in isolation). Up to 120 snapshots are kept.
- Identify the wrong assumption. The last legal shape you placed fit the four rules but was not part of the solution.
- Try the other factor pair for that clue, or switch to a different clue whose shape is now forced by the new boundary.
Hint paints one rectangle from the stored solution and increments the hint counter. It is useful when you are stuck on one shape and cannot see the forced pair; it is a poor first move because it skips the deduction. This game does not track stars or penalties for Hint/Undo — but the deduction is the point.
6. Difficulty is density and grid size, not a new rule
All three tiers use the same four placement rules. What changes is the grid and the clue density:
- Easy: 9–11 clues on 5×5 (25 cells). 76 of 110 clues are 2, 3, 5 or 7, and 73 sit on a corner or edge, so borders often force quickly.
- Medium: 12–16 clues on 7×7 (49 cells). Values go up to 7 and there are more inner clues (76 of 157), so you test more factor pairs before a shape becomes forced.
- Hard: 14–18 clues on 9×9 (81 cells). Values go up to 10 and 101 of 174 clues are inside the grid rather than on an edge or corner, so a wrong early shape can cascade farther before the dead-end message appears.
The rules do not change between tiers. If a hard board feels different, it is because the same deduction chain is longer and the boundary gives you fewer free anchors.
7. Common mistakes
- Dragging a large number first. On these boards the large values (8–10) appear only on hard tiers and still have multiple factor pairs until the space around them is fixed. Start with 1s, border strips and clues whose only fitting pair is obvious.
- Assuming a legal shape is correct. Legal means it passes the four rules right now; it may still be a dead end. Watch the status line after each placement.
- Forgetting thin strips. A 5 can be 1×5 or 5×1, a 7 can be 1×7 or 7×1, and an 8 can be 1×8 or 8×1. Narrow gaps are often filled by strips, not squares.
- Treating Undo as “remove last rectangle”. Undo restores the previous whole-board snapshot. If you removed a rectangle by tapping it and then placed another, Undo takes you back to the snapshot before that placement step as recorded.
- Reading “dead end” as “no solution”. Every shipped board has exactly one solution; “dead end” means your current placement is off that path.
8. A one-minute checklist
- Place every 1 immediately (20 in the whole library).
- Scan corner and edge clues for values whose only fitting factor pair follows the border.
- Test small strip clues (2, 3, 5, 7) before multi-pair values (4, 6, 8, 9).
- Work inward from fixed borders; leave 8, 9 and 10 for when surrounding space is constrained.
- If the status line says “dead end”, Undo and try the other factor pair.
- If one shape is stuck, use Hint once, then continue deducing from the new boundary.
FAQ
How many Shikaku puzzles are in this version?
There are 36 frozen boards: 12 easy 5×5 (boards 1–12, 9–11 clues), 12 medium 7×7 (13–24, 12–16 clues) and 12 hard 9×9 (25–36, 14–18 clues). Each board has exactly one solution.
What does the number in a cell mean?
It is the area of the rectangle that must cover that cell, measured in grid cells (height × width). A 1 is a single cell, a 4 can be 1×4, 4×1 or 2×2 if it fits, and a 10 on a 9×9 board can be 2×5 or 5×2.
When does the timer start?
The timer starts on your first successful placement (a legal dragged rectangle released on the board) or when you press Hint. Undo and Restart do not start it, and Restart resets it to 0:00.
What does “Dead end” mean?
It means no rectangle from the stored unique solution can be placed without overlapping a shape you already placed. Your current layout is legal so far but not on the solution path. Use Undo to step back and try a different factor pair.
What does Hint do?
Hint paints one rectangle from the stored solution onto the board, counts itself in the hints counter, and can start the timer if it was not already running. It does not finish the puzzle for you.
How much can I undo?
Undo restores the previous whole-board snapshot, up to 120 snapshots per session. Restart clears the current board but keeps your saved best times and solved marks in this browser.
Can I pick a specific board or difficulty?
Yes. ?puzzle=7 pins board 7 by number. ?level=hard opens the hard tier and selects its first unsolved board (or the first hard board if all are solved). The arrows step through boards by id, and the size chip cycles Easy → Medium → Hard.
Are the largest rectangles always obvious?
No. In this library clue values go up to 10, and the values with the most factor pairs on their grids are 6 and 8 (four pairs each). A value of 10 is limited to 2×5 and 5×2 on 9×9, so “larger number” does not always mean “more options”.
The game page covers dragging, the buttons and the rules; this page covers the deduction. Every number above was read from the shipped build’s js/engine.js, js/levels.js and js/main.js.
More games to play
More free browser games on Playnesta — pick your next round.