Play Masyu Online
Draw a single closed loop that passes through every circle. The loop must turn at black circles and go straight through white circles. A beautiful Nikoli classic.
Tap between dots to draw edges — form a single loop
What Is Masyu?
Masyu (ましゅ, sometimes romanised as “Mashu”) is a loop-drawing logic puzzle created by Nikoli, the Japanese publisher behind Sudoku, Kakuro, and many other beloved puzzles. It first appeared in Puzzle Communication Nikoli in 2000 under the name “Shiroshinju Kuroshinju” (White Pearls and Black Pearls), later shortened to Masyu.
The puzzle is played on a rectangular grid containing black and white circles (the “pearls”). Your goal is to draw a single continuous loop — a closed path with no branches or crossings — that passes through every circle while obeying the following rules:
- Black circles (●): The loop must make a 90° turn at the circle, and must travel straight for at least one cell in both directions from the turn.
- White circles (○): The loop must pass straight through the circle (no turn), but must turn in at least one of the two cells immediately before or after the circle along the straight line.
The loop may also pass through cells that don’t contain circles — it just has no special rules at those intersections. The key constraint is that the loop must be a single closed path that visits every circle exactly once.
How to Play
- Choose a grid size and difficulty. 5×5 Easy is perfect for learning. Larger grids and harder levels have more complex loop paths.
- Tap between two dots to draw or remove an edge (line segment). On desktop, click between adjacent intersection points.
- Build the loop by connecting edges. Every intersection on the loop must have exactly two edges — one coming in, one going out.
- Respect the circles. Black circles = turn here, go straight before and after. White circles = go straight here, turn nearby.
- Close the loop. The path must form a single connected loop — no loose ends, no branches, no separate loops.
- Check your work with the Check button to see if you’ve solved it.
Masyu Strategy Tips
1. Start With Black Circles Near Edges
A black circle requires a turn and straight segments in both directions. Near a grid edge, many directions are blocked, which heavily constrains the path. Often there is only one possible way the loop can pass through edge-adjacent black circles. These are the easiest cells to solve first.
2. Process White Circles Near Edges
A white circle on the edge of the grid must be entered and exited along the edge (going straight), with a turn forced at the neighbouring cell. This frequently determines the loop direction for several cells at once.
3. Extend Forced Segments
Once you draw some edges, look for intersections that already have two connections — no more edges can attach there. Conversely, if an intersection has one edge and only one possible direction for the second edge, draw it immediately. This “forced extension” is the bread and butter of Masyu solving.
4. Avoid Small Closed Loops
The solution must be a single loop through all circles. If you notice you’re about to close a small loop that doesn’t include every circle, something is wrong — backtrack and adjust.
5. Use Parity and Reachability
If connecting two partial paths would isolate an unvisited circle with no way to reach it, that connection is invalid. Think globally about which parts of the grid still need to be connected.
Masyu vs Other Loop Puzzles
- Masyu vs Slitherlink: Both are loop-drawing puzzles, but Slitherlink uses numbered clues on cell edges to indicate how many sides of a cell are part of the loop. Masyu uses circles inside cells with turn/straight constraints.
- Masyu vs Sudoku: Sudoku is about filling numbers; Masyu is about drawing a path. Both require pure logic, but the spatial/geometric reasoning in Masyu feels very different.
- Masyu vs Nonograms: Both are grid-based visual logic puzzles. Nonograms reveal a picture; Masyu reveals an elegant loop.
History of Masyu
Masyu was born in the creative puzzle workshop of Nikoli, a Tokyo-based publisher that gave the world Sudoku, Kakuro, Slitherlink, and dozens of other logic puzzles. It debuted in 2000 in their flagship magazine Puzzle Communication Nikoli.
The original name, Shiroshinju Kuroshinju, was poetic but long. Nikoli readers quickly nicknamed it Masyu — and the shorter name stuck.
The puzzle gained international popularity through Nikoli’s English-language publications and online puzzle communities. Its elegant ruleset — just two simple circle constraints — produces surprisingly deep and beautiful logic, which has made it a favourite among competitive puzzle solvers and casual players alike.
Frequently Asked Questions
More Puzzle & Strategy Games
If you enjoy Masyu, try these other free games on our site: