KOJP

Masyu (Pearls) Online Game

Straight through white pearls, turn on black ones. Draw the single loop that strings every pearl

Easy 6×6 · Normal 8×8 · Hard 10×10 · Daily puzzle

Every board is generated fresh with exactly one answer. Go straight through a white pearl and turn in the cell right before or after it; turn on a black pearl and go straight for at least one cell on both sides. Best times are saved in this browser.

Controls

Drag from a cell to the next: draw a line (start on a line to erase)
Tap between two cells: line → × → clear
Arrows: move · Shift+arrow: line · Ctrl+arrow: ×
Z undo · H hint · C check

What kind of puzzle is Masyu?

Masyu is a logic puzzle where you draw one closed loop through the centers of grid cells so that it passes every white and black pearl, each in its own prescribed way. It is a Japanese pencil puzzle, also called the pearl loop puzzle.

The loop runs only horizontally and vertically, never branches or crosses itself, and must close without gaps. Cells without a pearl may be visited or skipped. There are just two rules, but a handful of pearls interlock until only one path remains, and watching that path narrow down is the whole pleasure of the puzzle.

What are the white and black pearl rules?

In a white pearl cell the loop must go straight, and it must turn in at least one of the two cells right before or after it. In a black pearl cell the loop must turn, and in both directions it must then run straight through the neighbouring cell for at least one more step.

PearlIn that cellIn the neighbouring cells
White pearlStraight (horizontal or vertical pass)At least one of the two cells before and after turns. Both going straight is wrong
Black pearlTurn (an L shape)Both neighbours go straight. Turning again right next to it is wrong
Empty cellMay be visited or notIf visited, straight or turn, anything goes

A black pearl on the border cannot leave the board, so its two inner directions are fixed, and a white pearl on the border can only run along that border. Starting from the edges is the usual first step.

Which openings can I use right away?

A few common layouts let you draw lines at a glance. Look for the shapes in this table first.

ShapeLines you can draw immediately
Black pearl on an edgeIt cannot go outward, so draw two cells straight in each of the two inner directions. A black pearl in a corner is completely determined.
White pearl on an edgeIt runs along the edge. Three or more white pearls in a row along an edge can never satisfy the rules, so such layouts never appear.
Three white pearls in a rowIf the middle one were passed along the row, both neighbours would also run along the row, leaving the middle pearl straight on both sides. So all three are crossed perpendicular to the row.
Two black pearls side by sideNeither can head toward the other, because the cell next to a black pearl must be straight and the neighbour is a black pearl that turns. Each goes two cells the other way.
Black pearl one cell from an edgeToward the edge there is no room for two straight cells, so that direction is blocked. Mark it with × and draw two cells the other way.
Dead end cellA cell the line enters with only one way out has that exit fixed, and a cell with no way out is never visited.

How are boards made, and is the answer really unique?

Yes. Every board is generated fresh and released only after a solver has confirmed that it has exactly one answer.

The generator first builds a random loop through every cell, then presses in pockets of empty cells, and places a pearl at every position along the loop where the rules allow one. Once that board is confirmed unique, pearls are removed one at a time, keeping only removals that leave a single answer. Easy keeps plenty of pearls, while Hard strips them down as far as possible so the chains of deduction grow longer. The daily puzzle takes its seed from the date, so everyone gets the same board that day.

What do Hint and Check tell me?

Hint draws one segment of line, and Check marks in red any rule your current lines already break. Both are counted in your record.

Tips for solving Masyu faster

  1. Walk the border first. Corner and edge pearls have almost no choice, so that is where the first lines appear.
  2. Use × freely. Marking impossible edges makes it obvious when a cell is left with only one exit.
  3. Follow loose ends. Every open end must continue somewhere. If only one unmarked edge is left in that cell, draw it.
  4. Beware small loops. If the line would close before reaching every pearl, the closing edge is an ×.
  5. Settle white pearl turns early. When both sides of a white pearl are drifting toward straight, one of them must turn, so decide where before it is too late.

Controls

Best times and daily completions stay in this browser and are never sent to a server. Share result turns your time and difficulty into a picture card.

Frequently asked questions

Is Masyu free to play?

Yes. You can play right here for free with no sign up, on a computer, phone or tablet, and every board is generated fresh.

How do white and black pearls differ?

The loop goes straight through a white pearl and turns in the cell right before or after it. The loop turns on a black pearl and then runs straight through the neighbouring cell in both directions.

Do I have to visit every empty cell?

No. Cells without a pearl may be visited or skipped. The only requirement is a single loop that never branches, crosses or breaks.

Is there only one answer?

Yes. A solver confirms that every board has exactly one answer, and pearls are removed only when the answer stays unique, so pure deduction always gets you to the end.

Where should I start?

Look at corner and edge pearls. A black pearl on an edge sends two straight cells inward in both inner directions, a white pearl on an edge runs along the edge, and three white pearls in a row are all crossed perpendicular to the row.

Do I need to place × marks?

No. Completion is judged by lines only, so × is just a note. Still, marking impossible edges makes it much easier to spot the moment a cell has only one exit left.

What is the daily puzzle?

An 8×8 board seeded from the date, so everyone gets the same board on the same day. Finishing it records a daily completion, and Share result lets you post your time.

Where are records stored?

Best times for each difficulty and daily completions are kept only in this browser and never sent to a server. Clearing browser data clears them too.