Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
testing if my approach also works here ...

The difference is that you have positive clauses like The programmer likes cherries , which result in 12 zeroes instead of only 3:

  • 6 for (programmer)x(apples,pears)
  • 6 for (blacksmith,fisherman) x (cherries)

That's why you fewer clauses than the OP to be decisive.

Applying all clauses:

FRUITS PROFESSIONS NAMES P B F cherries . 0 0 apples 0 0 . John pears 0 0 0 cherries 0 0 0 apples 0 . 0 Patrick pears 0 . 0 cherries . 0 0 apples 0 0 0 Edward pears 0 0 0
  • => (Edward,programmer,cherries)
  • => (fisherman,John, apples)
  • excluding other possibilities
FRUITS PROFESSIONS NAMES P B F cherries 0 0 0 apples 0 0 1 John pears 0 0 0 cherries 0 0 0 apples 0 0 0 Patrick pears 0 . 0 cherries 1 0 0 apples 0 0 0 Edward pears 0 0 0
  • => (Patrick, blacksmith, pears)

I'd say a bit too easy. :)

But I think it's obvious now how we could use this "hyper-cube" solver for creating riddles in low dimensions.

update

Though I'm not sure if a "solvable" riddle (i.e. only one solution possible) is always as obvious as the examples given so far.

For instance what if every cut has at least 2 undefined points, such that the first step is not obvious.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

update

This riddle is even easier and already solved right away without eliminations. since there is only one possibility for pears after initially filling the matrix.


In reply to Re^2: My first cpan module - App::ForKids::LogicalPuzzleGenerator by LanX
in thread My first cpan module - App::ForKids::LogicalPuzzleGenerator by pawel.biernacki

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found