GooferThings

Masyu · EN

Masyu Solving Strategies: Pearl Orientations and Loop Continuity

Improve at Masyu by eliminating illegal pearl orientations, propagating their required neighbouring segments, and refusing edges that close an incomplete loop. Track both local turn obligations and the endpoints of the growing paths; neither view alone captures the whole puzzle.

Black-pearl orientation filtering

A black pearl has four possible right-angle orientations before other constraints are considered. Each orientation includes two-step arms, so test the entire shape against the boundary, existing lines, and nearby pearl requirements. A turn that fits at the centre can still fail one step farther along.

Keep all surviving orientations. Their shared edges are forced even when the complete turn is undecided. Revisit this set after any neighbouring change; a white pearl's straight passage or an excluded edge can remove an orientation that was previously viable.

Masyu: solved example illustrating At the black upper-left pearl the loop turns, then continues straight at both immediately neighboring points.
Solved reference: At the black upper-left pearl the loop turns, then continues straight at both immediately neighboring points.

White-pearl axis elimination

A white pearl has a horizontal or vertical straight-through axis. Each axis must leave at least one immediately neighbouring position able to turn. Reject an axis if it leaves the board, conflicts with an existing incident line, or forces both neighbouring positions to continue straight.

Do not test only whether two opposite edges are available at the pearl. The nearby-turn condition can decide between two axes that both look locally open. When one axis survives, draw both opposite edges and carry the remaining turn obligation into its two neighbours.

Masyu: solved example illustrating At the white pearl R1C2 the loop goes straight and turns at the neighboring black corner.
Solved reference: At the white pearl R1C2 the loop goes straight and turns at the neighboring black corner.

Turn-obligation transfer

Once a white pearl's axis is fixed, treat its adjacent turn as an explicit unresolved obligation. If one neighbouring position is proved straight, the other is forced to turn. Conversely, a confirmed turn on one side satisfies the obligation and may leave the opposite side flexible.

A black pearl can supply a useful straightness constraint because its neighbouring positions along both arms must remain straight. Where these neighbourhood requirements interact, a deduction can travel from one pearl to another without directly joining their centres. Check the direction of each affected segment carefully.

Masyu: solved example illustrating At the white pearl R1C2 the loop goes straight and turns at the neighboring black corner.
Solved reference: At the white pearl R1C2 the loop goes straight and turns at the neighboring black corner.

Degree-two propagation and forced endpoints

Every used position has degree two. Two confirmed edges exclude all others there; one confirmed edge with a single feasible continuation forces that continuation. Follow such endpoint deductions along an entire chain until it reaches a choice or a pearl needing a more specific orientation check.

The degree-two rule applies to used positions. An ordinary position with no incident line may be unused, so two available edges alone do not force both. A pearl, by contrast, must be visited. Keeping this distinction explicit prevents false forced paths through empty parts of the grid.

Masyu: solved example illustrating At the black upper-left pearl the loop turns, then continues straight at both immediately neighboring points.
Solved reference: At the black upper-left pearl the loop turns, then continues straight at both immediately neighboring points.

Premature-loop prevention

Track which open endpoints belong to the same path component. An edge joining the two ends of one component would close it. Exclude that edge if another pearl or confirmed segment remains outside the resulting loop, because no further material could join it without branching or revisiting a position.

Two nearby endpoints from different components can usually be joined without closing a loop, subject to the pearl rules. The important test is their path identity, not their visual proximity. Tracing a long component is often enough to find a forced direction near an otherwise ambiguous pearl.

Masyu: solved example illustrating At the black upper-left pearl the loop turns, then continues straight at both immediately neighboring points.
Solved reference: At the black upper-left pearl the loop turns, then continues straight at both immediately neighboring points.

Shared consequences across alternatives

When a pearl has two surviving orientations, compare their consequences rather than immediately choosing between them. Both may force the same remote endpoint to continue, exclude the same edge, or require a particular neighbouring turn. That common consequence is proved without resolving the original choice.

Keep the alternatives short and complete. Derive only forced effects within each, and distinguish direct shared edges from consequences that need an extra step. If an option merely looks less elegant, it remains possible. Masyu permits irregular paths and unused ordinary positions.

Masyu: solved example illustrating At the black upper-left pearl the loop turns, then continues straight at both immediately neighboring points.
Solved reference: At the black upper-left pearl the loop turns, then continues straight at both immediately neighboring points.

Controlled contradiction chains

For a narrow unresolved choice, assume one axis or turn and propagate its mandatory edges. A black arm forced to bend too soon, a white pearl with no neighbouring turn, a branch, a dead endpoint, or an incomplete closed loop disproves that assumption.

Record the tested orientation and the first failed rule. Undo all dependent edges before confirming the alternative. A long route that becomes difficult is not a proof of failure; the contradiction must identify an impossible local requirement or a global loop that cannot include everything required.

Masyu: solved example illustrating At the white pearl R1C2 the loop goes straight and turns at the neighboring black corner.
Solved reference: At the white pearl R1C2 the loop goes straight and turns at the neighboring black corner.

A harder worked example

This board uses the Hard preset. Follow the four cumulative stages, revisiting each affected constraint after a deduction. Filled pearls are black and hollow pearls are white. Orange lines and crosses show newly decided loop edges between the numbered points.

Masyu: hard example, initial
The starting board from the Hard preset.

Worked stage 1

At the black corner pearls, the loop has only two available directions and must turn. Extend straight through the immediate neighboring points. These compulsory extensions also remove branches that would introduce a forbidden turn beside a black pearl.

Masyu: hard example, step 2
Worked stage 1: the latest decisions are orange.

Worked stage 2

Use the upper white pearl’s straight passage, then apply the black-pearl condition on the left boundary. Each new segment constrains its neighboring points. Exclude side branches only when pearl geometry or a point’s two-edge degree forbids them.

Masyu: hard example, step 4
Worked stage 2: the latest decisions are orange.

Worked stage 3

Work through the central and lower white pearls. A white pearl stays straight but requires a turn at an immediately neighboring point. Follow the forced horizontal passages and reject the vertical branches that would violate those conditions.

Masyu: hard example, step 6
Worked stage 3: the latest decisions are orange.

Worked stage 4

Finish the bottom white pearls, then settle unmarked points using zero or two incident edges. The last open route joins the existing segments. Trace the completed loop through every pearl and check that no separate cycle or branch remains.

Masyu: hard example, step 8
Worked stage 4: the latest decisions are orange.

Sources and background

Worked example: follow each deduction

Read rows from top to bottom and columns from left to right, starting at 1. Read each instruction, then compare the orange changes with the previous picture. Keep undecided cells or segments open until the explanation settles them.

● black pearl; ○ white pearl; × no line; ? = undecided

Grid state: E1=?, E2=?, E3=?, E4=?, E5=?, E6=?, E7=?, E8=?, E9=?, E10=?, E11=?, E12=?, E13=?, E14=?, E15=?, E16=?, E17=?, E18=?, E19=?, E20=?, E21=?, E22=?, E23=?, E24=?, E25=?, E26=?, E27=?, E28=?, E29=?, E30=?, E31=?, E32=?, E33=?, E34=?, E35=?, E36=?, E37=?, E38=?, E39=?, E40=?. Clues: R1C1=2, R1C2=1, R1C3=0, R1C4=1, R1C5=2, R2C1=1, R2C2=0, R2C3=0, R2C4=0, R2C5=1, R3C1=2, R3C2=1, R3C3=1, R3C4=0, R3C5=0, R4C1=0, R4C2=1, R4C3=1, R4C4=0, R4C5=1, R5C1=0, R5C2=1, R5C3=0, R5C4=1, R5C5=2. E1=0–1; E2=0–5; E3=1–2; E4=1–6; E5=2–3; E6=2–7; E7=3–4; E8=3–8; E9=4–9; E10=5–6; E11=5–10; E12=6–7; E13=6–11; E14=7–8; E15=7–12; E16=8–9; E17=8–13; E18=9–14; E19=10–11; E20=10–15; E21=11–12; E22=11–16; E23=12–13; E24=12–17; E25=13–14; E26=13–18; E27=14–19; E28=15–16; E29=15–20; E30=16–17; E31=16–21; E32=17–18; E33=17–22; E34=18–19; E35=18–23; E36=19–24; E37=20–21; E38=21–22; E39=22–23; E40=23–241122334455
Starting grid
  1. Follow these changes in order; the picture below includes all of them.

    • Draw the segment between row 1, column 1 and row 1, column 2. At the junction at row 1, column 1, the loop must use exactly two segments. Other segments already contribute 0, with 1 still undecided. The stated choice is the only one that allows the required total.

    • Draw the segment between row 1, column 1 and row 2, column 1. At the junction at row 1, column 1, the loop must use exactly two segments. Other segments already contribute 1, with 0 still undecided. The stated choice is the only one that allows the required total.

    • Draw the segment between row 1, column 4 and row 1, column 5. At the junction at row 1, column 5, the loop must use exactly two segments. Other segments already contribute 0, with 1 still undecided. The stated choice is the only one that allows the required total.

    • Draw the segment between row 1, column 5 and row 2, column 5. At the junction at row 1, column 5, the loop must use exactly two segments. Other segments already contribute 1, with 0 still undecided. The stated choice is the only one that allows the required total.

    • Draw the segment between row 4, column 5 and row 5, column 5. At the junction at row 5, column 5, the loop must use exactly two segments. Other segments already contribute 0, with 1 still undecided. The stated choice is the only one that allows the required total.

    • Draw the segment between row 5, column 4 and row 5, column 5. At the junction at row 5, column 5, the loop must use exactly two segments. Other segments already contribute 1, with 0 still undecided. The stated choice is the only one that allows the required total.

    • Draw the segment between row 1, column 2 and row 1, column 3. At the black pearl at row 1, column 1, turn, then continue straight at both neighbouring points. With the segments already fixed, only this choice fits those three linked requirements.

    • Mark the segment between row 1, column 2 and row 2, column 2 unused (×). At the black pearl at row 1, column 1, turn, then continue straight at both neighbouring points. With the segments already fixed, only this choice fits those three linked requirements.

    • Mark the segment between row 2, column 1 and row 2, column 2 unused (×). At the black pearl at row 1, column 1, turn, then continue straight at both neighbouring points. With the segments already fixed, only this choice fits those three linked requirements.

    • Draw the segment between row 2, column 1 and row 3, column 1. At the black pearl at row 1, column 1, turn, then continue straight at both neighbouring points. With the segments already fixed, only this choice fits those three linked requirements.

    Grid state: E1=1, E2=1, E3=1, E4=0, E5=?, E6=?, E7=1, E8=?, E9=1, E10=0, E11=1, E12=?, E13=?, E14=?, E15=?, E16=?, E17=?, E18=?, E19=?, E20=?, E21=?, E22=?, E23=?, E24=?, E25=?, E26=?, E27=?, E28=?, E29=?, E30=?, E31=?, E32=?, E33=?, E34=?, E35=?, E36=1, E37=?, E38=?, E39=?, E40=1. Clues: R1C1=2, R1C2=1, R1C3=0, R1C4=1, R1C5=2, R2C1=1, R2C2=0, R2C3=0, R2C4=0, R2C5=1, R3C1=2, R3C2=1, R3C3=1, R3C4=0, R3C5=0, R4C1=0, R4C2=1, R4C3=1, R4C4=0, R4C5=1, R5C1=0, R5C2=1, R5C3=0, R5C4=1, R5C5=2. E1=0–1; E2=0–5; E3=1–2; E4=1–6; E5=2–3; E6=2–7; E7=3–4; E8=3–8; E9=4–9; E10=5–6; E11=5–10; E12=6–7; E13=6–11; E14=7–8; E15=7–12; E16=8–9; E17=8–13; E18=9–14; E19=10–11; E20=10–15; E21=11–12; E22=11–16; E23=12–13; E24=12–17; E25=13–14; E26=13–18; E27=14–19; E28=15–16; E29=15–20; E30=16–17; E31=16–21; E32=17–18; E33=17–22; E34=18–19; E35=18–23; E36=19–24; E37=20–21; E38=21–22; E39=22–23; E40=23–24××1122334455
    Step 1: the orange outlines mark the changes explained above.
  2. Follow these changes in order; the picture below includes all of them.

    • Draw the segment between row 1, column 3 and row 1, column 4. Go straight through the white pearl at row 1, column 4, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Mark the segment between row 1, column 4 and row 2, column 4 unused (×). Go straight through the white pearl at row 1, column 4, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Mark the segment between row 1, column 3 and row 2, column 3 unused (×). Go straight through the white pearl at row 1, column 4, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Mark the segment between row 2, column 4 and row 2, column 5 unused (×). At the black pearl at row 1, column 5, turn, then continue straight at both neighbouring points. With the segments already fixed, only this choice fits those three linked requirements.

    • Draw the segment between row 2, column 5 and row 3, column 5. At the black pearl at row 1, column 5, turn, then continue straight at both neighbouring points. With the segments already fixed, only this choice fits those three linked requirements.

    • Draw the segment between row 3, column 1 and row 3, column 2. At the black pearl at row 3, column 1, turn, then continue straight at both neighbouring points. With the segments already fixed, only this choice fits those three linked requirements.

    • Mark the segment between row 3, column 1 and row 4, column 1 unused (×). At the black pearl at row 3, column 1, turn, then continue straight at both neighbouring points. With the segments already fixed, only this choice fits those three linked requirements.

    • Mark the segment between row 2, column 2 and row 3, column 2 unused (×). At the black pearl at row 3, column 1, turn, then continue straight at both neighbouring points. With the segments already fixed, only this choice fits those three linked requirements.

    • Draw the segment between row 3, column 2 and row 3, column 3. At the black pearl at row 3, column 1, turn, then continue straight at both neighbouring points. With the segments already fixed, only this choice fits those three linked requirements.

    • Mark the segment between row 3, column 2 and row 4, column 2 unused (×). At the black pearl at row 3, column 1, turn, then continue straight at both neighbouring points. With the segments already fixed, only this choice fits those three linked requirements.

    Grid state: E1=1, E2=1, E3=1, E4=0, E5=1, E6=0, E7=1, E8=0, E9=1, E10=0, E11=1, E12=?, E13=0, E14=?, E15=?, E16=0, E17=?, E18=1, E19=1, E20=0, E21=1, E22=0, E23=?, E24=?, E25=?, E26=?, E27=?, E28=?, E29=?, E30=?, E31=?, E32=?, E33=?, E34=?, E35=?, E36=1, E37=?, E38=?, E39=?, E40=1. Clues: R1C1=2, R1C2=1, R1C3=0, R1C4=1, R1C5=2, R2C1=1, R2C2=0, R2C3=0, R2C4=0, R2C5=1, R3C1=2, R3C2=1, R3C3=1, R3C4=0, R3C5=0, R4C1=0, R4C2=1, R4C3=1, R4C4=0, R4C5=1, R5C1=0, R5C2=1, R5C3=0, R5C4=1, R5C5=2. E1=0–1; E2=0–5; E3=1–2; E4=1–6; E5=2–3; E6=2–7; E7=3–4; E8=3–8; E9=4–9; E10=5–6; E11=5–10; E12=6–7; E13=6–11; E14=7–8; E15=7–12; E16=8–9; E17=8–13; E18=9–14; E19=10–11; E20=10–15; E21=11–12; E22=11–16; E23=12–13; E24=12–17; E25=13–14; E26=13–18; E27=14–19; E28=15–16; E29=15–20; E30=16–17; E31=16–21; E32=17–18; E33=17–22; E34=18–19; E35=18–23; E36=19–24; E37=20–21; E38=21–22; E39=22–23; E40=23–24××××××××1122334455
    Step 2: the orange outlines mark the changes explained above.
  3. Follow these changes in order; the picture below includes all of them.

    • Mark the segment between row 2, column 3 and row 3, column 3 unused (×). Go straight through the white pearl at row 3, column 3, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Draw the segment between row 3, column 3 and row 3, column 4. Go straight through the white pearl at row 3, column 3, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Mark the segment between row 3, column 3 and row 4, column 3 unused (×). Go straight through the white pearl at row 3, column 3, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Mark the segment between row 3, column 4 and row 3, column 5 unused (×). Go straight through the white pearl at row 3, column 3, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Draw the segment between row 4, column 1 and row 4, column 2. Go straight through the white pearl at row 4, column 2, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Draw the segment between row 4, column 2 and row 4, column 3. Go straight through the white pearl at row 4, column 2, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Mark the segment between row 4, column 2 and row 5, column 2 unused (×). Go straight through the white pearl at row 4, column 2, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Draw the segment between row 4, column 1 and row 5, column 1. Go straight through the white pearl at row 4, column 2, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Draw the segment between row 4, column 3 and row 4, column 4. Go straight through the white pearl at row 4, column 3, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Mark the segment between row 4, column 3 and row 5, column 3 unused (×). Go straight through the white pearl at row 4, column 3, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    Grid state: E1=1, E2=1, E3=1, E4=0, E5=1, E6=0, E7=1, E8=0, E9=1, E10=0, E11=1, E12=?, E13=0, E14=?, E15=0, E16=0, E17=?, E18=1, E19=1, E20=0, E21=1, E22=0, E23=1, E24=0, E25=0, E26=?, E27=?, E28=1, E29=1, E30=1, E31=0, E32=1, E33=0, E34=?, E35=?, E36=1, E37=?, E38=?, E39=?, E40=1. Clues: R1C1=2, R1C2=1, R1C3=0, R1C4=1, R1C5=2, R2C1=1, R2C2=0, R2C3=0, R2C4=0, R2C5=1, R3C1=2, R3C2=1, R3C3=1, R3C4=0, R3C5=0, R4C1=0, R4C2=1, R4C3=1, R4C4=0, R4C5=1, R5C1=0, R5C2=1, R5C3=0, R5C4=1, R5C5=2. E1=0–1; E2=0–5; E3=1–2; E4=1–6; E5=2–3; E6=2–7; E7=3–4; E8=3–8; E9=4–9; E10=5–6; E11=5–10; E12=6–7; E13=6–11; E14=7–8; E15=7–12; E16=8–9; E17=8–13; E18=9–14; E19=10–11; E20=10–15; E21=11–12; E22=11–16; E23=12–13; E24=12–17; E25=13–14; E26=13–18; E27=14–19; E28=15–16; E29=15–20; E30=16–17; E31=16–21; E32=17–18; E33=17–22; E34=18–19; E35=18–23; E36=19–24; E37=20–21; E38=21–22; E39=22–23; E40=23–24×××××××××××××1122334455
    Step 3: the orange outlines mark the changes explained above.
  4. Follow these changes in order; the picture below includes all of them.

    • Mark the segment between row 4, column 4 and row 4, column 5 unused (×). Go straight through the white pearl at row 4, column 3, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Draw the segment between row 3, column 5 and row 4, column 5. Go straight through the white pearl at row 4, column 5, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Draw the segment between row 5, column 1 and row 5, column 2. Go straight through the white pearl at row 5, column 2, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Draw the segment between row 5, column 2 and row 5, column 3. Go straight through the white pearl at row 5, column 2, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Draw the segment between row 5, column 3 and row 5, column 4. Go straight through the white pearl at row 5, column 2, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Mark the segment between row 4, column 4 and row 5, column 4 unused (×). Go straight through the white pearl at row 5, column 4, with a turn immediately before or after it. Comparing the remaining routes with the drawn segments leaves only this choice.

    • Mark the segment between row 2, column 2 and row 2, column 3 unused (×). At the junction at row 2, column 2, the loop must use zero or two segments, never one or three. Other segments already contribute 0, with 0 still undecided. The stated choice is the only one that allows the required total.

    • Mark the segment between row 2, column 3 and row 2, column 4 unused (×). At the junction at row 2, column 3, the loop must use zero or two segments, never one or three. Other segments already contribute 0, with 0 still undecided. The stated choice is the only one that allows the required total.

    • Mark the segment between row 2, column 4 and row 3, column 4 unused (×). At the junction at row 2, column 4, the loop must use zero or two segments, never one or three. Other segments already contribute 0, with 0 still undecided. The stated choice is the only one that allows the required total.

    • Draw the segment between row 3, column 4 and row 4, column 4. At the junction at row 3, column 4, the loop must use zero or two segments, never one or three. Other segments already contribute 1, with 0 still undecided. The stated choice is the only one that allows the required total.

    Grid state: E1=1, E2=1, E3=1, E4=0, E5=1, E6=0, E7=1, E8=0, E9=1, E10=0, E11=1, E12=0, E13=0, E14=0, E15=0, E16=0, E17=0, E18=1, E19=1, E20=0, E21=1, E22=0, E23=1, E24=0, E25=0, E26=1, E27=1, E28=1, E29=1, E30=1, E31=0, E32=1, E33=0, E34=0, E35=0, E36=1, E37=1, E38=1, E39=1, E40=1. Clues: R1C1=2, R1C2=1, R1C3=0, R1C4=1, R1C5=2, R2C1=1, R2C2=0, R2C3=0, R2C4=0, R2C5=1, R3C1=2, R3C2=1, R3C3=1, R3C4=0, R3C5=0, R4C1=0, R4C2=1, R4C3=1, R4C4=0, R4C5=1, R5C1=0, R5C2=1, R5C3=0, R5C4=1, R5C5=2. E1=0–1; E2=0–5; E3=1–2; E4=1–6; E5=2–3; E6=2–7; E7=3–4; E8=3–8; E9=4–9; E10=5–6; E11=5–10; E12=6–7; E13=6–11; E14=7–8; E15=7–12; E16=8–9; E17=8–13; E18=9–14; E19=10–11; E20=10–15; E21=11–12; E22=11–16; E23=12–13; E24=12–17; E25=13–14; E26=13–18; E27=14–19; E28=15–16; E29=15–20; E30=16–17; E31=16–21; E32=17–18; E33=17–22; E34=18–19; E35=18–23; E36=19–24; E37=20–21; E38=21–22; E39=22–23; E40=23–24××××××××××××××××××1122334455
    Step 4: the orange outlines mark the changes explained above.

Frequently asked questions

What is a white-pearl turn obligation?

After fixing its straight axis, at least one immediate neighbour along that axis must turn. If one is forced straight, the other must turn. A turn farther along the path does not satisfy it.

Can an unresolved black pearl still give a forced line?

Yes. Filter its legal right-angle orientations, including full two-step arms. An edge shared by every surviving orientation must belong to the solution even if the other arm remains undecided.

How do I recognise an illegal early loop?

Trace whether the edge under consideration joins the two ends of the same path. If closing it leaves another pearl or confirmed segment outside, that edge is forbidden until the complete route can include everything.

What should I scan when all pearls look ambiguous?

Inspect existing path endpoints and positions already carrying two edges. Then revisit white pearls with restricted neighbouring turns and black pearls whose arms meet those paths. A path deduction may resolve a pearl indirectly.

Play Masyu free →
Goofer Puzzles app icon

YOUR NEXT QUIET MOMENT

Goofer Puzzles

Take your puzzle time with you on iPhone and iPad.

Download on the App StoreExplore the app