Well you provided code but no output.
And at least one of your allowed moves looks wrong (0-8) or I'm not understanding you're coding system.
How long does your code run?
| [reply] |
Just run it. :)
0-8 means start in upper left corner and go down two and right one. Double check the code, The 0 is the skip from the start of string, and the 8 is the gap (in bytes) between the squares to be swapped.
This program runs in just under seven seconds on my machine, an AMD Athlon(tm) Dual Core Processor 5050e running at 2.8GHz.
| [reply] |
> Just run it. :)
my mobile has no Perl installed (yet)
...but my Netbook does and I'm back home now.
Congrats it's the best known solution, almost exactly the sequence given in the book. (found manually though)
| [reply] |
move gap
S
E.. 1
S..
E 5
S
.
E. 6
S
.
.E 8
| [reply] [d/l] |