What Is Masyu?

Masyu (pronounced mah-shoe) is a logic puzzle published by the Japanese puzzle publisher Nikoli — the same company that popularized Sudoku worldwide. The name roughly translates to "evil influence," a nod to how pearls on the grid seem to exert invisible forces on the loop you draw.

Unlike Sudoku (number placement) or crossword puzzles (vocabulary), Masyu is purely spatial. There are no numbers, no letters, and no hidden information. Every puzzle is solvable from the starting pearls using only logical deduction.

What makes Masyu unique among Nikoli puzzles:
  • The grid starts almost empty — only scattered pearls, no numbers
  • You draw lines, not fill cells
  • The solution is always a single closed loop
  • The constraint system is binary: two pearl types, two simple rules

If you enjoy Number Link connect puzzles, Masyu shares the loop-drawing DNA but adds far richer constraints through pearl interactions.

The Rules of Masyu

The rules look simple — two pearls, two constraints — but the emergent logic is deep.

The Universal Rules

Every Masyu puzzle shares these non-negotiable rules:

Rule Meaning
One loop only The final answer is a single closed curve. No branches, no separate loops, no dead ends.
No crossings The loop cannot cross itself. Each cell is used at most once.
Every pearl visited The loop must pass through every black and white pearl on the grid.
Grid movement The loop enters and exits each cell through the middle of its sides (not diagonals). All turns are 90°.

Black Pearl Rule (●)

When the loop reaches a black pearl, it must:

  1. Turn at the black pearl (make a 90° corner)
  2. Continue straight for at least one full cell immediately before the black pearl
  3. Continue straight for at least one full cell immediately after the black pearl

In plain language: the loop cannot pass straight through a black pearl — it must corner there. And on both sides of that corner, the loop gets at least one straight cell before it can turn again.

White Pearl Rule (○)

When the loop reaches a white pearl, it must:

  1. Pass straight through the white pearl (no turn at the pearl itself)
  2. Turn in at least one of the two adjacent cells (before OR after the white pearl) — or both

The white pearl forces straight passage, but the loop must prove its visit was "genuine" by making a turn immediately next to it — on the entry side, the exit side, or both.

Pearl Constraint Comparison

Pearl Turn AT pearl? Straight before? Straight after? Must turn nearby?
Black ● YES (mandatory 90°) YES (≥ 1 cell) YES (≥ 1 cell) N/A (turn is the pearl)
White ○ NO (must go straight) Flexible Flexible YES (≥ 1 turn in adjacent cell)

This comparison is the key insight: black and white pearls are opposite constraints. Black demands a turn at the pearl; white forbids it. Black extends straight away from the pearl; white's straightness is only at the pearl.

Your First Masyu: Step-by-Step Walkthrough

Let's solve a small scenario together. No prior experience needed.

The Setup

Imagine a 5×5 grid. Place three black pearls:

And two white pearls:

Initial puzzle state: 3 black pearls (●) and 2 white pearls (○) on a 5×5 grid

Step 1: Start at the Border

White pearls on the outer border are the easiest starting clues. Our white pearl at (1,4) sits on the top edge. A loop passing straight through it along the top edge must travel horizontally (parallel to the border) — because vertical straight passage would immediately hit the grid boundary.

Deduction: The white pearl at (1,4) forces horizontal passage through it.

Step 2: Black Pearls Near the Border

Our black pearl at (2,2) is one cell from the left edge and one from the top. The rule says straight segments must extend at least one cell on both sides of the turn. If the turn at (2,2) went toward the top-left corner, neither straight segment could extend far enough without hitting the edge illegally.

Deduction: The black pearl at (2,2) must turn so that both straight extensions point toward the grid's interior — meaning the loop approaches (2,2) from above and exits to the right, or approaches from the left and exits downward.

Step 3: Chain the Constraints

The white pearl at (3,2) requires straight passage. Since the adjacent black pearl at (2,2) already forces a specific geometry, the white pearl's straight-through rule cascades — it forces the loop at (3,2) to continue in whatever direction the local geometry allows.

Key pattern: A black pearl's mandatory straight extensions often become a white pearl's constraint. This cascade is the engine of Masyu solving.

Step 4: Avoid Short Circuits

As you draw, you'll sometimes be tempted to close a small loop connecting two nearby segments. Resist. The loop must visit EVERY pearl before closing. A short circuit that skips pearls is an invalid solution.

Step 5: Finish the Loop

Once all pearls are threaded and no short circuits are formed, connect the remaining open endpoints. A correctly-solved Masyu has exactly one continuous curve — no loose ends.

✓ Complete closed loop

Complete solution: the loop passes through all 5 pearls (3 black ●, 2 white ○) exactly once and closes without crossings

Black Pearl Patterns (with Grid Visuals)

Black pearls are your strongest starting clues. Here are the mandatory patterns.

Pattern A: Black Pearl on the Edge

┌───┬───┬───┐
│   │ ● │   │   ← Black on top edge
└───┴───┴───┘

A black pearl on the top edge (row 1) cannot extend straight upward — there's no cell above. Therefore both straight segments must extend downward, and the turn must face the interior.

Rule: Black on any border → loop must extend away from that border.

Pattern B: Two Adjacent Black Pearls

┌───┬───┐
│ ● │ ● │   ← Two blacks side by side
└───┴───┘

Each black pearl needs straight extensions of at least one cell. If both tried to extend toward each other, they'd collide (the loop can't cross itself). Therefore both must extend away from each other.

Rule: Adjacent black pearls push the loop outward.

Pattern C: Black Pearl in a Corner

┌───┬───┐
│ ● │   │   ← Black in top-left corner
├───┼───┤
│   │   │
└───┴───┘

A corner black pearl has two borders constraining it. The loop must turn at the corner AND extend straight on both sides — meaning the loop path through a corner black is completely forced: one cell down and one cell right (for a top-left corner), forming a fixed L-shape.

Rule: Corner black → L-shape is fully determined.
Edge: away from border Adjacent: push outward Corner: forced L-shape
The three mandatory black-pearl patterns. Red lines show forced loop segments.

White Pearl Patterns

White pearls are subtler but equally powerful once you learn to read them.

Pattern A: White Pearl on the Border

A white pearl on the top edge must be traveled straight through horizontally (parallel to the border). Vertical passage would run into the grid edge immediately.

Deduction: White on border → loop runs parallel to that border.

Pattern B: Two Adjacent White Pearls on the Border

Two white pearls next to each other along the border both require straight passage. Beyond the pair, the loop must turn (at least one turn in adjacent cells for each pearl).

Deduction: The loop enters the pair, goes straight through both, then U-turns to satisfy both turn requirements.

Pattern C: Three-in-a-Row White Pearls

Three white pearls in a straight line cannot all be passed straight through in the same direction — the middle pearl would have no turn adjacent to it (violating the white pearl rule). Therefore, the loop must pass through the three pearls perpendicular to their line.

Key insight: This is one of Masyu's most powerful deductions: a line of three whites forces the loop's orientation.

Pattern D: White Pearl Diagonal to a Black Pearl

When a white pearl sits diagonally adjacent to a black pearl, the geometry constrains both. The black pearl needs a turn and straight extensions; the white pearl needs straight passage through itself. Together, they often force the loop to route away from the shared corner.

Border: parallel passage Adjacent pair: U-turn Three-in-row: perpendicular Diagonal: away from corner
The four key white-pearl patterns. Blue lines show forced loop segments. Black pearl (●) and white pearl (○) interactions in Pattern D.

Advanced Techniques

Once the basic patterns are internalized, reach for these advanced weapons.

The Jordan Curve Parity Trick

A closed loop crossing any imaginary line must cross it an even number of times (this is the Jordan Curve Theorem from topology).

How to apply it: Imagine slicing the grid vertically between two columns. The final loop must cross that slice 0, 2, 4, 6... times. If your partial solution has the loop crossing the slice only once so far, it must cross again somewhere — helping you identify where the remaining loop must pass.

Jordan Curve Parity Imaginary vertical line (green dashed) Loop crosses at 2 points (green dots) 2 crossings = even parity ✓ If only 1 crossing found, loop MUST cross again elsewhere. Rule: closed loop = even crossings

Jordan Curve demonstration: a closed loop crossing any imaginary line must do so an even number of times. Here, 2 crossings confirms even parity.
Pro tip: This is the technique no beginner guide mentions, and it's what separates intermediate from expert Masyu solvers.

Endpoint Counting

As you draw segments, keep track of "loose ends" in each region. Each region must have an even number of endpoints crossing its boundary (again, Jordan Curve). If a region has 3 endpoints trying to escape, you've made a mistake.

Short Circuit Prevention

The most common intermediate mistake: closing a small loop that satisfies nearby pearls but leaves other pearls unreachable. Before connecting two segments, ask: "Does this close the loop? If so, does every pearl lie on this closed loop?" If not — don't connect yet.

Unique Solution Forcing

Published Masyu puzzles have exactly one valid solution. If you reach a branch where both directions seem possible, test each: if one direction allows two completions (violating uniqueness), the other direction is forced. This meta-reasoning is a last resort — proper constraint propagation should solve 95% of puzzles without it.

Solving Strategy Workflow

Here's a reliable order of operations for every Masyu puzzle:

Priority Action When to Use
1 Corner black pearls Always first — fully forced
2 Edge black pearls Next — strong constraint
3 Border white pearls Force parallel passage
4 Adjacent black pairs Push outward pattern
5 3-in-a-row whites Force perpendicular passage
6 Cascade from forced segments Propagate through the grid
7 Endpoint counting / Jordan Curve When stuck in advanced puzzles
8 Unique solution forcing Last resort
Key mindset: Start local (borders, corners), then propagate inward. Don't try to trace the entire loop at once — build it segment by segment, letting each forced segment constrain the next.

Common Mistakes to Avoid

Even experienced solvers fall into these traps:

Mistake Why It's Wrong How to Avoid
Turning at a white pearl Violates white rule (must go straight) Double-check pearl color before drawing
Passing straight through black Violates black rule (must turn) Remember: black = corner
Forgetting straight extension after black Black requires ≥1 straight cell on both sides Count cells: the cell immediately after the turn must be straight
Short circuit Closing loop before visiting all pearls Count pearls on current loop before closing
Ignoring white's turn requirement White needs turn in at least one adjacent cell Mark "pending turns" near whites
3-way junction Loop can never fork If 3 segments meet a cell, one is wrong

Masyu belongs to a family of loop-drawing Nikoli puzzles. If you love it, try these:

Frequently Asked Questions

Do I ever have to guess in Masyu?

No. Every well-designed Masyu puzzle is solvable by pure logic. If you find yourself guessing, you've missed a constraint. Step back, re-examine the pearls — a deduction is hiding there.

What's the difference between black and white pearls?

Black pearls force a turn (corner) at the pearl with straight segments extending at least one cell on both sides. White pearls force straight passage through the pearl, but require a turn in at least one adjacent cell. Black = turn here; White = straight here, turn nearby.

How do you start solving a Masyu puzzle?

Start with corners and edges. Corner black pearls have fully forced L-shaped paths. Edge black pearls must extend away from the border. Border white pearls must travel parallel to the edge. These forced moves cascade inward through the grid.

What is the Jordan Curve technique in Masyu?

The Jordan Curve Theorem states that a closed loop must cross any imaginary line an even number of times (0, 2, 4, etc.). In Masyu, if you draw an imaginary line through the grid and count loop crossings, you can identify where the loop must pass to maintain even parity. This advanced technique helps solve complex puzzles.

What are common Masyu mistakes?

Common mistakes include: turning at white pearls (must go straight), passing straight through black pearls (must turn), forgetting the straight extension requirement after black pearls, creating short circuits (closing loops before visiting all pearls), and forming 3-way junctions (loops can never fork).

How is Masyu different from Slither Link?

Both are Nikoli loop puzzles. Slither Link places constraints on edges (numbers tell how many of a cell's four edges are part of the loop). Masyu places constraints on cells (pearls tell how the loop must pass through that specific cell). Masyu has fewer starting clues but each pearl provides more powerful constraints.

What's the best way to practice Masyu?

Start with 6×6 puzzles and solve them mentally to train pattern recognition. Progress to 10×10 once edge and corner patterns are automatic. For expert practice, try variants like gray pearls (unknown type) or toroidal Masyu (wrapping grid edges).