Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Challenge: Mystery Word Puzzle

by BrowserUk (Patriarch)
on Jan 13, 2005 at 00:50 UTC ( [id://421832]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Challenge: Mystery Word Puzzle
in thread Challenge: Mystery Word Puzzle

On of these has two solutions, and the "tricky" one has three--assuming my code is correct.

P:\test>421692-1 6 blackly:2 drowsy:1 haddad:1 desperado:2 achieving:2 + cowls:1 bet:1 comprehension:2 foe:1 permeate:1 balkanizations:4 1 fabius P:\test>421692-1 7 shortest:3 drilling:0 locked:2 messing:1 irritated: +1 glory:1 modes:2 transcribed:3 2 cutoffs offcuts P:\test>421692-1 5 blocker:2 entropy:2 monotonously:4 resonant:3 blind +fold:1 decrypts:2 inquiry:1 considered:3 1 mouse P:\test>421692-1 5 repartee:1 kankakee:2 dewdrop:0 brushfires:2 identi +fiably:4 liberalizes:4 swimming:3 geoffrey:0 dotting:2 3 nails slain snail

Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.

Replies are listed 'Best First'.
Re^4: Challenge: Mystery Word Puzzle
by dragonchild (Archbishop) on Jan 13, 2005 at 03:49 UTC
    Where's the 'f' in the words for the second puzzle?

    Being right, does not endow the right to be rude; politeness costs nothing.
    Being unknowing, is not the same as being stupid.
    Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
    Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

      Unless I am still misunderstanding the rules, the absence of an 'f' in the hint words does not preclude it from appearing in the solution word.

      The rules only specify what must be be there, or rather, what overlaps muct be there. Except for the case when the list conatins a word with 0 (zero) overlap, in which case non of its characters can appear in the solution, but 'f' is not so excluded:

      offcuts cutoffs shortest:3 [sot] [^hre] drilling:0 [] [^drilng] locked:2 [oc] [^lked] messing:1 [s] [^meing] irritated:1 [t] [^iraed] glory:1 [o] [^glry] modes:2 [os] [^mde] transcribed:3 [tsc] [^ranibed]

      I think that means that both those are valid?

      That my dictionary does contain 'octopus', but doesn't throw it out as a solution is a bug, but I think that the 'ff's are not.


      Examine what is said, not who speaks.
      Silence betokens consent.
      Love the truth but pardon error.
        BrowserUk,
        Unless I am still misunderstanding the rules, the absence of an 'f' in the hint words does not preclude it from appearing in the solution word.

        After people, including yourself, were already working on the challenge - Zaxo asked in the CB if the mystery word could contain letter(s) not present in any of the hint words. I added an assumption.

        • There will be no letters in the mystery word that are not covered by the hint words.
        • Added 2005-01-12 16:10:00 EST

        Now the fact that my assumptions changed several times throughout the course of people working on is a reflection of how little progress I had actually made myself. As I indicated in another post - I don't have an official rule book for mystery word puzzles.

        To me it was an interesting problem even with my poor assumptions. I have learned from it, so I have upvoted everyone who took time to reply. One lesson is that sometimes that the solutions you dismiss immediately deserve a second look. Another lesson is that no matter how thoroughly you think about a problem, as soon as you open it up to public debate you are going to find different points of view. I have played for a couple of days solving these puzzles by hand and had a method that I thought was smarter/better/faster than dictionary scans so I didn't even pursue it. It turned out coding my manual solution was harder than I thought.

        Cheers - L~R

Re^4: Challenge: Mystery Word Puzzle
by trammell (Priest) on Jan 13, 2005 at 03:07 UTC
    Well, I was shooting for baboon, octopus, mouse, snail. I guess the solution depends pretty critically on one's dictionary.

      As it turns out, it appears that your code is also not repecting the "all letters in the mystery word are covered by letters in the hint words" rule.

      'octopus' is not a solution to your second puzzle because 'u' does not appear in the hint words:

      $length = 7; $hints = { 'shortest' => '3', 'drilling' => '0', 'locked' => '2', 'messing' => '1', 'irritated' => '1', 'glory' => '1', 'modes' => '2', 'transcribed' => '3' };

      limbic~region's challenge is definitely more complicated than it first appears.

      I believe that I finally have my pure regex solution working.


      Examine what is said, not who speaks.
      Silence betokens consent.
      Love the truth but pardon error.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://421832]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found