Masyu: Difference between revisions

Content added Content deleted
No edit summary
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Logic Puzzle Sidebar}}
Masyu (ましゅ, ''Mashu'', IPA [maɕu͍]; translates as "evil influence") is a type of [[Path Drawing (Logic Puzzle Type)|path-drawing]] [[Logic Puzzle|logic puzzle]] designed and published by Nikoli. It is played on a rectangular grid of squares, some of which contain circles; each circle is either "white" (empty) or "black" (filled). The goal is to draw a single continuous non-intersecting loop that properly passes through all circled cells. The loop must "enter" each cell it passes through from the center of one of its four sides and "exit" from a different side; all turns are therefore 90 degrees.
[[File:Masyu Example.png|thumb|An unsolved Masyu puzzle.]]
[[File:Masyu Example.png|thumb|An unsolved Masyu puzzle.]]
[[File:Masyu Example Solution.png|thumb|Solution to the above Masyu example.]]
[[File:Masyu Example Solution.png|thumb|Solution to the above Masyu example.]]
'''Masyu''' (ましゅ, ''Mashu'', IPA [maɕu͍]) is a type of [[Path Drawing (Logic Puzzle Type)|path-drawing]] [[Logic Puzzle|logic puzzle]] designed and published by Nikoli. It is played on a rectangular grid of squares, some of which contain circles that are either "white" (empty) or "black" (filled). The goal is to draw a single continuous non-intersecting loop that properly passes through all circled cells.
The two varieties of circle have differing requirements for how the loop must pass through them:


==Background==
* White circles must be traveled straight through, but the loop must turn in the previous and/or next cell in its path.
* Black circles must be turned upon, but the loop must travel straight through the next and previous cells in its path.


The puzzle type was originally called ''Shiroshinju Kuroshinju'' (白真珠黒真珠 "White Pearls, Black Pearls") and first appeared in ''Puzzle Communication Nikoli'' #90. It was invented by in 2000 by アセトニトリル ("Acetonitril"), who introduced the black pearl clues from the earlier puzzle genre "真珠の首飾り" ("Pearl earring") by 矢野龍王 ("Yano Ryuoh") which only contained white pearls.<ref>[https://wpcunofficial.miraheze.org/wiki/Masyu Masyu - WPC unofficial wiki]</ref> The name Masyu reportedly derives from a misreading of the kanji for "pearl" (真珠 ''shinju'') by Nikoli's president; the name caught on and was made the official name in ''Puzzle Communication Nikoli'' #103.
Variations include those that involve grey circles, which either are ambiguously white or black, or signify a turn that is not 90 degrees, and puzzles in which certain spaces are required to be visited by the path.

One particular construction of Masyu, known as "Ura-Masyu", places a heavy constraint on the constructor - the puzzle must be uniquely solvable both normally and when all of the pearls switch colors (from white to black and vice versa).

==Puzzle Applications==

Masyu within a puzzle can be identified from the presence of a grid of squares, some of which filled with black and white circles. As this logic puzzle is one of the more common standard grid puzzles, many puzzlehunt puzzles often directly state its use or provide the rules as plaintext within the puzzle.

The goal of Masyu is to draw a single continuous non-intersecting loop that satisfies the following properties.

* It must pass through every circle.
* The loop cannot turn on a white circle, but must turn on at least one of the adjacent cells in its path.
* The loop must turn on a black circle, but cannot turn on either of the adjacent cells in its path.

In puzzles where the presence of Masyu isn't directly called out, it is very commonly clued in flavortext using the erroneous translation "evil influence" (derived from a literal translation of the unrelated Japanese term 魔手, also pronounced ''mashu'').

Puzzlehunts often feature standard logic puzzle genres presented in unorthodox ways; as such, a puzzle may present a variant on the standard Masyu, changing the grid or tweaking the rules in a manner that creates a completely different puzzle with different deductions to be made.

==Strategy==

{{To do}} <!-- note to self figure out how to record a solve of a sample Masyu later-->

Deductions for a standard Masyu mostly revolve around its two types of circles and how they behave with respect to other circles, the edge of the grid, and extant sections of the loop. Below are some deductions that can be done right from the start.

* Black circles touching the edge of the grid (or are one square away from touching the grid) must have one line going away from the side.
* White circles touching the edge of the grid must have the line going parallel to the side.
* Two black circles adjacent to each other must have two lines on the line segment going away from each other.
* Two white circles in a row either have two lines going through them in parallel or a single line going through them that turns upon leaving either circle.
* Three or more white circles in a row must have multiple lines going through them in parallel.

Some of the initial deductions can cause some options for black circles and white circles to violate the loop requirement, allowing for more deductions to be made.


==Notable Examples==
==Notable Examples==

===Played Straight===

* {{ExamplePuzzle|MIT Mystery Hunt 2016/Sleeping Beauty Meta|Sleeping Beauty Meta (MITMH 2016)|https://puzzles.mit.edu/2016/round/sleeping_beauty/}} - The meta for the [[Sleeping Beauty]] round, Masyu is clued using the "Evil Influence" cluing.
* {{ExamplePuzzle|Puzzle Rojak/Refreshment Stand|Refreshment Stand (Puzzle Rojak)|https://web.archive.org/web/20220728184734/https://www.puzzlerojak.com/puzzle/refreshment-stand}} - This variant of Masyu involves nine loops instead of one.

===Notable Twists===

* {{ExamplePuzzle|MIT Mystery Hunt 2014/Oyster Card|Oyster Card (MITMH 2014)|https://puzzles.mit.edu/2014/puzzle/oyster_card/}} - Masyu, with the additional twist that it's played on a map of the London Underground.
* {{ExamplePuzzle|Silph Puzzle Hunt 2021/RED SUS|RED SUS (Silph Puzzle Hunt 2021)|https://puzzles.mit.edu/2014/puzzle/oyster_card/}} - The lines of this Masyu are not axis-parallel.

== See Also ==

* [[:Category:Masyu|Puzzles that involve Masyu]]
* [https://puzz.link/db/?type=masyu Masyu puzzles on puzz.link]

== References ==

[[Category:Elements]]
[[Category:Logic Puzzles]]

Latest revision as of 05:29, 18 December 2023

An unsolved Masyu puzzle.
Solution to the above Masyu example.

Masyu (ましゅ, Mashu, IPA [maɕu͍]) is a type of path-drawing logic puzzle designed and published by Nikoli. It is played on a rectangular grid of squares, some of which contain circles that are either "white" (empty) or "black" (filled). The goal is to draw a single continuous non-intersecting loop that properly passes through all circled cells.

Background[edit | edit source]

The puzzle type was originally called Shiroshinju Kuroshinju (白真珠黒真珠 "White Pearls, Black Pearls") and first appeared in Puzzle Communication Nikoli #90. It was invented by in 2000 by アセトニトリル ("Acetonitril"), who introduced the black pearl clues from the earlier puzzle genre "真珠の首飾り" ("Pearl earring") by 矢野龍王 ("Yano Ryuoh") which only contained white pearls.[1] The name Masyu reportedly derives from a misreading of the kanji for "pearl" (真珠 shinju) by Nikoli's president; the name caught on and was made the official name in Puzzle Communication Nikoli #103.

One particular construction of Masyu, known as "Ura-Masyu", places a heavy constraint on the constructor - the puzzle must be uniquely solvable both normally and when all of the pearls switch colors (from white to black and vice versa).

Puzzle Applications[edit | edit source]

Masyu within a puzzle can be identified from the presence of a grid of squares, some of which filled with black and white circles. As this logic puzzle is one of the more common standard grid puzzles, many puzzlehunt puzzles often directly state its use or provide the rules as plaintext within the puzzle.

The goal of Masyu is to draw a single continuous non-intersecting loop that satisfies the following properties.

  • It must pass through every circle.
  • The loop cannot turn on a white circle, but must turn on at least one of the adjacent cells in its path.
  • The loop must turn on a black circle, but cannot turn on either of the adjacent cells in its path.

In puzzles where the presence of Masyu isn't directly called out, it is very commonly clued in flavortext using the erroneous translation "evil influence" (derived from a literal translation of the unrelated Japanese term 魔手, also pronounced mashu).

Puzzlehunts often feature standard logic puzzle genres presented in unorthodox ways; as such, a puzzle may present a variant on the standard Masyu, changing the grid or tweaking the rules in a manner that creates a completely different puzzle with different deductions to be made.

Strategy[edit | edit source]

To do TO DO

Deductions for a standard Masyu mostly revolve around its two types of circles and how they behave with respect to other circles, the edge of the grid, and extant sections of the loop. Below are some deductions that can be done right from the start.

  • Black circles touching the edge of the grid (or are one square away from touching the grid) must have one line going away from the side.
  • White circles touching the edge of the grid must have the line going parallel to the side.
  • Two black circles adjacent to each other must have two lines on the line segment going away from each other.
  • Two white circles in a row either have two lines going through them in parallel or a single line going through them that turns upon leaving either circle.
  • Three or more white circles in a row must have multiple lines going through them in parallel.

Some of the initial deductions can cause some options for black circles and white circles to violate the loop requirement, allowing for more deductions to be made.

Notable Examples[edit | edit source]

Played Straight[edit | edit source]

  • Sleeping Beauty Meta (MITMH 2016) (web) - The meta for the Sleeping Beauty round, Masyu is clued using the "Evil Influence" cluing.
  • Refreshment Stand (Puzzle Rojak) (web) - This variant of Masyu involves nine loops instead of one.

Notable Twists[edit | edit source]

  • Oyster Card (MITMH 2014) (web) - Masyu, with the additional twist that it's played on a map of the London Underground.
  • RED SUS (Silph Puzzle Hunt 2021) (web) - The lines of this Masyu are not axis-parallel.

See Also[edit | edit source]

References[edit | edit source]