rubiks-cube-NxNxN-solver icon indicating copy to clipboard operation
rubiks-cube-NxNxN-solver copied to clipboard

How to get solution in single layer moves as opposed to wide moves?

Open SS-Sid opened this issue 1 year ago • 3 comments

I want to count every single layer movement as a separate move. This implies that given a wide move 12Rw in the solution from this repo is counted as 1 move, but in my scenario this would translate to 12 separate R moves (R, 2R, ..., 12R for example). If I convert every wide move in the solution using this approach, it would surely result in a non-optimal approach. Is there a solution in the repo. to get solution only as a sequence of single layer moves as described above? or is there any other approach to my problem?

SS-Sid avatar Dec 25 '23 16:12 SS-Sid

You could write some code to take the 12R in the solution (for example) and expand it out to your R, 2R....12R but it would not be an optimal solution in terms of move count for that notation. There isn't a way to have the solver use a different move notation though...that would be a pretty major undertaking that would involve a few hundred hours of compute time to build all of the needed lookup tables.

dwalton76 avatar Dec 26 '23 14:12 dwalton76

@dwalton76 I see in your code, there are SLICE moves that were commented out. Can we use those moves? I tried to use them, but got mysterious errors.

ptra31 avatar Jan 11 '24 18:01 ptra31

I started working on slice moves a while back but never finished it. The big gotcha is you would have to rebuild all of the lookup tables in https://github.com/dwalton76/rubiks-cube-lookup-tables to use slices...that would take a few weeks of compute time.

dwalton76 avatar Jan 11 '24 20:01 dwalton76