Masu PuzzleJapanese Logic Puzzles
English

How to play Heyawake

へやわけ

The rules

  • Shade some squares. Shaded squares never touch side by side, and the unshaded squares all stay connected.
  • A number in a room says how many of its squares are shaded. Rooms without a number can have any amount.
  • A straight line of unshaded squares, across or down, can’t reach into a third room: it may cross one thick border, but never two.

Watch one get solved

1211
DemoStep through a small Heyawake being solved. Each move follows from one rule, and the ring shows which clue it comes from.

Using the board

  • Tap a square to fill it in blackwhite. Tap again for a dot, which means “this stays white”. A third tap clears it.
  • Drag across squares to shade or dot several at once. A room’s number sits in the corner of its top-left square, and that square can be shaded too.
  • A room’s number turns grey once the room has exactly that many shaded squares, and red if it has too many or can’t reach it.
  • Settled mistakes turn red: shaded squares that touch, white squares walled off from the rest, and a straight line of dots that reaches into a third room.

Try a small one

Warm-up puzzle
121

What is Heyawake?

Heyawake is a grid divided into rooms by thick lines. You shade some squares. Shaded squares can never touch side by side, and the white squares left over must all join up into one area. A number in a room says exactly how many of its squares are shaded; a room without a number can have any amount.

The last rule is what makes it Heyawake: a straight line of white squares, across or down, may cross one thick border but never two. In other words, it can run from one room into the next, but not on into a third. The name is Japanese for “dividing rooms” (へやわけ), and the puzzle is a Nikoli classic.

How to start a Heyawake

Start with small rooms and big numbers. A 2 in a row of three squares can only be the two ends. A 5 in a 3×3 room is a checkerboard. A 0 makes the whole room white. Every shaded square you place makes its neighbours white, so dot them as you go.

Next, look along the rows and columns for lines of white that reach into a third room. Where a narrow room sits between two others, the squares on either side of it can’t all stay white: at least one square from the last one before the room to the first one after it must be shaded. When only one of them is left, shade it.

Keep an eye on the edges and corners. A shaded square that would close off a white square, or a diagonal run of shaded squares that would reach right across the board, is never allowed.

Common mistakes

The long-line rule counts rooms, not squares. A white line can be as long as you like inside two rooms; it only breaks the rule when it crosses a second border.

Only straight lines count. White squares that turn a corner can wander through as many rooms as they like.

The number is written in a room’s top-left square, but it counts the whole room, and that square can be shaded like any other.

Questions

What does Heyawake mean?
It’s Japanese for “dividing rooms”, after the thick lines that split the grid.
Can the square with the number be shaded?
Yes. The number belongs to the whole room. The square it’s written in is shaded or white like any other.
What about rooms with no number?
They can hold any number of shaded squares, including none, as long as the other rules hold.
Does the long-line rule apply to diagonals?
No. Only straight lines across a row or down a column count.
Does every Heyawake have one solution?
Yes. Each one is checked by a solver that counts every possible answer, and it’s solved step by step without guessing before it’s published.
How big are the puzzles?
The daily Heyawake is 10×10, picked as the hardest of six candidates. Practice puzzles come in 6×6, 8×8 and 10×10.