Analysis of Collector's Corner - Mystery Master
Scroll To Bottom Mystery Master Analysis of Collector's Corner Member

CollectorsCorner

This three-star logic puzzle has 5 noun types, 6 nouns per type, 4 links, 42 facts, and no rules. It needs 360 marks and 10 grids.

With a little bit of thought, this puzzle can be solved without any rules. For example, clue 3 states: "The even-numbered booths were rented in some order by Alben, Kimball, and the one selling the doll collection." This can be expressed as facts by restating what booths the three collectors are NOT in. The following JavaScript is for clue 3.

const list3 = [alben, kimball, dolls];
puzzle.addFact("3", list3, Verb.IsNot, Link.With);
puzzle.addFact("3", list3, Verb.IsNot, Link.With, [booth1, booth3, booth5]);
		

Clue 8 states: "The first three booths are occupied by Bruno, Ivey, and the spoon collector, in some order." Similar JavaScript is used for clue 8.

const list8 = [bruno, ivey, spoons]
puzzle.addFact("8", list8, Verb.IsNot, Link.With);
puzzle.addFact("8", list8, Verb.IsNot, Link.With, [booth4, booth5, booth6]);
		

You also have to look at clues 4 and 5 as one big clue. You have the three unique collectors in clue 4 that cannot be the collectors in clue 5. Below is the JavaScript for clues 4 and 5.

puzzle.addFact("4,5", [banks, birds, salt], Verb.IsNot, Link.With, [houghton, kimball, lambert]);
		

Clues 6 and 9 both give a list of collectors that are in booths where their both numbers are related. In general: "booth X has a lower number than booth Y." Below is the JavaScript for clue 6, followed by the JavaScript for clue 9.

puzzle.addFactsInSequence("6", [endora, jasper, comics, tools], Verb.Is, lowerThan);
puzzle.addFactsInSequence("9", [sports, fronda, bells, casper], Verb.Is, lowerThan);
		

This puzzle shows how you can enter a lot of information in a few lines of JavaScript. Take a look at the puzzle module to learn more.