Thread: "The twist counting script"

From: "Matt Young" <indigowombat@indigowombat.com>
Date: Fri, 13 Aug 2004 22:26:52 -0000
Subject: The twist counting script



Hello! I've been playing with the MC4D again recently, and was
wondering how to use the twist counting Perl script written by Jay
Birkenbilt. I do have a Perl interpreter, but I'm unsure how to
feed the script my solution log files and get a twist count. Also,
am I correct in understanding that the script will count only actual
twists, and not rotations of the entire hypercube that leave it in
the same state? Any help would be appreciated.

--Matt Young




From: Jay Berkenbilt <ejb@ql.org>
Date: Fri, 13 Aug 2004 18:50:35 -0400
Subject: Re: [MC4D] The twist counting script





> Hello! I've been playing with the MC4D again recently, and was
> wondering how to use the twist counting Perl script written by Jay
> Birkenbilt. I do have a Perl interpreter, but I'm unsure how to
> feed the script my solution log files and get a twist count.
> Also, am I correct in understanding that the script will count
> only actual twists, and not rotations of the entire hypercube that
> leave it in the same state? Any help would be appreciated.

On my Linux system, I just say

perl count_moves.pl logfile

where logfile is the full (or relative) path to the logfile. You may
have to specify a full path to the perl script as well. Keep in mind
that you have to run this from the command line. It just outputs the
number of twists used to solve the puzzle after subtracting out the
original twists used to scramble the puzzle.

--
Jay Berkenbilt
http://www.ql.org/q/




From: "Matt Young" <indigowombat@indigowombat.com>
Date: Fri, 13 Aug 2004 16:21:17 -0700
Subject: Re: [MC4D] The twist counting script



>> Hello! I've been playing with the MC4D again recently, and was
>> wondering how to use the twist counting Perl script written by Jay
>> Birkenbilt. I do have a Perl interpreter, but I'm unsure how to
>> feed the script my solution log files and get a twist count.
>> Also, am I correct in understanding that the script will count
>> only actual twists, and not rotations of the entire hypercube that
>> leave it in the same state? Any help would be appreciated.
>
> On my Linux system, I just say
>
> perl count_moves.pl logfile
>
> where logfile is the full (or relative) path to the logfile. You may
> have to specify a full path to the perl script as well. Keep in mind
> that you have to run this from the command line. It just outputs the
> number of twists used to solve the puzzle after subtracting out the
> original twists used to scramble the puzzle.

Thanks for the help! Much appreciated.

--Matt Young





Return to MagicCube4D main page
Return to the Superliminal home page