From 259c7326f78d5495f5dc51c619932599a5279f68 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 22 Oct 2023 12:49:20 +0200 Subject: Progess with transformation implementation --- utils/TRANSFORMATIONS.txt | 6 +++ utils/mirror.sh | 2 +- utils/transform_moves.txt | 95 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 utils/transform_moves.txt (limited to 'utils') diff --git a/utils/TRANSFORMATIONS.txt b/utils/TRANSFORMATIONS.txt index 6ff6946..58446e8 100644 --- a/utils/TRANSFORMATIONS.txt +++ b/utils/TRANSFORMATIONS.txt @@ -8,6 +8,12 @@ the rotation that brings the F face on top and the D face on front. A composed rotation + mirror is obtained by applying the corresponding rotation to the solved cube mirrored along the M plane. +For example, to apply the transformation RBm (mirrored RB) to a cube C: + 1a. Apply a mirror along the M plane to the solved cube + 1b. Rotate the mirrored cube with z' y2 + 3. Apply the cube C to the transformed solved cube + 4. Apply the transformations of step 1a and 1b in reverse + The orientation of pieces after a rotation ignores the new position of centers. A rotated cube can technically be inconsistent, because the parity of the edge permutation has to be adjusted considering the diff --git a/utils/mirror.sh b/utils/mirror.sh index 57b02d1..41a434f 100755 --- a/utils/mirror.sh +++ b/utils/mirror.sh @@ -1,3 +1,3 @@ #!/bin/sh -sed 's/R/l/g ; s/L/R/g ; s/l/L/g' +tr 'LR' 'RL' diff --git a/utils/transform_moves.txt b/utils/transform_moves.txt new file mode 100644 index 0000000..469008b --- /dev/null +++ b/utils/transform_moves.txt @@ -0,0 +1,95 @@ +UFr U U +UFr R R +UFr F F + +ULr U U +ULr R F +ULr F L + +UBr U U +UBr R L +UBr F B + +URr U U +URr R B +URr F R + +DFr U D +DFr R L +DFr F F + +DLr U D +DLr R B +DLr F L + +DBr U D +DBr R R +DBr F B + +DRr U D +DRr R F +DRr F R + +RUr U R +RUr R F +RUr F U + +RFr U R +RFr R D +RFr F F + +RDr U R +RDr R B +RDr F D + +RBr U R +RBr R U +RBr F B + +LUr U L +LUr R B +LUr F U + +LFr U L +LFr R U +LFr F F + +LDr U L +LDr R F +LDr F D + +LBr U L +LBr R D +LBr F B + +FUr U F +FUr R L +FUr F U + +FRr U F +FRr R U +FRr F R + +FDr U F +FDr R R +FDr F D + +FLr U F +FLr R D +FLr F L + +BUr U B +BUr R R +BUr F U + +BRr U B +BRr R D +BRr F R + +BDr U B +BDr R L +BDr F D + +BLr U B +BLr R U +BLr F L -- cgit v1.3