Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Masyu

Draw one closed loop through the squares that passes every pearl: turn on black pearls, go straight through white ones.

How to play

  1. Draw one closed loop through the centres of squares, moving across or down between neighbours. It never branches, crosses or touches itself.
  2. The loop passes through every pearl. It does not have to visit every square.
  3. On a black pearl the loop turns, and on both sides it goes straight through the next square before it may turn again.
  4. On a white pearl the loop goes straight through, and it turns in at least one of the two squares just before or after the pearl.
  5. Tap between two square centres to draw a line, tap again to cross that link out, and once more to clear it.

Keyboard and touch

Arrow keysMove between squares (the highlighted square)
W A S DDraw or remove the line up, left, down or right from that square
Shift + W A S DCross that link out
Shift + arrowDraw or remove the line in that direction
Tap a linkLine, then cross, then empty (Cross mode: cross only)

Tips

  • A white pearl on the edge of the board: the loop runs along the edge through it.
  • A black pearl next to the edge cannot send the loop towards that edge, because it needs two straight squares on each side.
  • Three white pearls in a straight row: the loop crosses each of them the other way.
  • Every square on the loop has exactly two lines. If a square has one line and only one free way out, the loop goes that way.
  • A pearl ring turns dashed when its rule is broken; Check marks wrong lines, Hint adds or fixes one.

About this puzzle

Masyu is a Japanese pencil puzzle about drawing a loop through black and white pearls. Our generator grows a random hole-free shape whose edge is the loop, places every pearl that fits that loop, then removes pearls one by one while a solver proves that exactly one loop still fits. A second, separately written solver that walks the loop square by square re-checked every 6 × 6 board and a sample of the 8 × 8 boards. Each stored board is also played turned and mirrored, so one stored board gives 8 games. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product