Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: Golf: Cabbage, Goat, Wolf

by hdb (Monsignor)
on Jan 08, 2014 at 15:13 UTC ( #1069818=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    grep!$s{$_}&!($s&8&&~$s&$_&7)&!(~$s&8&&$s&~$_&7)&&($z=$s^$_)&8&&(($z&=
    +7)<3|$z==4),15,grep$_%3,1..14
    
  2. or download this
    0-8    11-1    7-15
     \    /    \    /
      10-2      13-5
          \    /
           14-4
    
  3. or download this
    grep
      !$s{$_}              # we have not been at $_ already
    ...
      &&($z=$s^$_)&8       # the boat moves
      &&(($z&=7)<3|$z==4), # with at most one passenger
      15,grep$_%3,1..14    # possible choices for moves
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2021-11-27 09:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?