Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: The 15 Puzzle

by msh210 (Monk)
on Jun 10, 2020 at 20:48 UTC ( #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
Node Status?
node history
Node Type: note [id://11117921]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2020-09-19 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (114 votes). Check out past polls.

    Notices?