Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Soma cube solver with regex

by ww (Archbishop)
on Feb 15, 2012 at 19:08 UTC ( [id://954044]=note: print w/replies, xml ) Need Help??


in reply to Soma cube solver with regex

"The regex is a little bit long...."

That is truly a lot like using a hammer to loosen a screw!

Replies are listed 'Best First'.
Re^2: Soma cube solver with regex
by herveus (Prior) on Feb 15, 2012 at 23:01 UTC
    Howdy!

    I've had cause more than once to reach for a hammer to deal with a recalcitrant screw.

    yours,
    Michael
      Hammer, hack saw, cold chisel, wrecking bar, Sawzall,... (In the case of really recalcitrant bolts, a torch!)

      Update: s/coal/cold/; ++ BrowserUk

        A torch? In our neck of the woods, we call it a "smoke wrench".

        ...roboticus

        When your only tool is a hammer, all screws are a bit tricky to remove.

Re^2: Soma cube solver with regex
by brx (Pilgrim) on Feb 15, 2012 at 19:59 UTC
    Even if I do this only for fun, I can't imagine a faster method to solve this puzzle. This work seems to be perfect for the regex engine skills. The final regex is only the concatanation of a lot of small easy pieces... But OK, I agree: this is not a good idea to show the generated regex ;-)
      I hope I gave no offense. It just struck me that that is truly a "super-sized" regex... and, less significantly (since I forsee no need for maintenance) is a pound-your-thumb-with-a-hammer stinker to maintain. Please, accept my admiration (and the ++ accorded your masterwork before my first reply).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-26 02:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found