Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: The 15 Puzzle

by msh210 (Monk)
on Jun 10, 2020 at 20:48 UTC ( [id://11117921]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $inversions = 1;
    while ($inversions % 2) {
        @board = (0, shuffle(1..15));
    ...
            }
        }
    }
    
  2. or download this
    my $inversions;
    do {
      $inversions = 0;
    ...
        }
      }
    } while $inversions % 2;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-19 11:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found