Masyu (ましゅ) Solver

There must be one single continuos loop.

The loop must travel straight through open circles and must turn on at least one of the sides.

Valid Not Valid Not Valid

The loop must turn on closed circles and must travel straight through the next cell on both sides.

Valid Not Valid Not Valid

Drawing lines

Click on a tile on the grid to select it. Click on a tile next to the tile that is selected to draw a line between the tiles.

Editing Grid

Enter a value into the rows and columns boxes then press the 'Generate Grid' button to make a grid of the specified size. The nnumber of rows and columns must be between 2 and 20.

Click on the 'Editing Mode' checkbox to enter editing mode. While in editing mode, you can click on tiles on the grid to toggle them between empty, open circles, and closed circles. Make sure to click the checkbox again if you wish to draw lines.

Checking Puzzle

Click the 'Check' button below the grid to check if the puzzle is solved. The response will appear in the output box below the button.

Solving Puzzle

Click the 'Solve' button below the grid to automatically solve the puzzle. It is possible that the program will not be able to solve the puzzle, either because the puzzle is impossible or because it is too hard for the program. If it can't solve it because it is impossible then it will say so it the output box. If it can't solve it because it is too hard it will do as much progress as it can and say that it is not solved in the output box.

If the program is not managing to solve the puzzle, you can increase the value in the 'Solving Depth' box to make it able to solve more difficult puzzles. However, the page may freeze if this number is set too high.


GRID EDITING
Number of Rows:
Number of Columns:

Editing mode:

LOAD GRID



Solving Depth:
Output: