aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/FORMAT.txt35
-rw-r--r--utils/TRANSFORMATIONS.txt23
2 files changed, 0 insertions, 58 deletions
diff --git a/utils/FORMAT.txt b/utils/FORMAT.txt
deleted file mode 100644
index 5bfb01e..0000000
--- a/utils/FORMAT.txt
+++ /dev/null
@@ -1,35 +0,0 @@
1The functions readcube() and writecube() use different formats to read
2and write a cube to text. Not all formats are supported for both input
3and output.
4
5# H48 - standard format for h48 (read, write)
6
7Each edge is represented by two letters denoting the sides it belongs to
8and one number denoting its orientation (0 oriented, 1 mis-oriented).
9Similarly, each corner is represented by three letters and a number
10(0 oriented, 1 twisted clockwise, 2 twisted counter-clockwise).
11Edge orientation is relative to the F / B axis, corner orientation is
12relative to the U / D axis.
13
14The pieces are ordered such that the solved cube looks like this:
15
16UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0
17UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0
18
19Whitespace (including newlines) between pieces is ignored when reading
20the cube, and a single whitespace character is added between pieces
21when writing.
22
23The cube after the moves R'U'F looks like this:
24
25FL1 BR0 DB0 UR1 UF0 UB0 DL0 FR0 UL1 DF1 BL0 DR0
26UBL1 DBR1 UFR2 DFR2 DFL2 UBL2 UFL2 DBL0
27
28# SRC - representation of the object in C code for cube_array (write)
29
30The exact format depends on the internal cube representation. It is
31guaranteed that, if OUT is the output in this format, the line
32
33cube_t cube = OUT;
34
35is interpreted correctly by h48.
diff --git a/utils/TRANSFORMATIONS.txt b/utils/TRANSFORMATIONS.txt
deleted file mode 100644
index 58446e8..0000000
--- a/utils/TRANSFORMATIONS.txt
+++ /dev/null
@@ -1,23 +0,0 @@
1Transformations can be either simple rotations or a rotation composed
2with a mirroring.
3
4Simple rotations are denoted by two letters corresponding to the faces
5to be moved to the U and F positions, respectively. For example FD is
6the rotation that brings the F face on top and the D face on front.
7
8A composed rotation + mirror is obtained by applying the corresponding
9rotation to the solved cube mirrored along the M plane.
10
11For example, to apply the transformation RBm (mirrored RB) to a cube C:
12 1a. Apply a mirror along the M plane to the solved cube
13 1b. Rotate the mirrored cube with z' y2
14 3. Apply the cube C to the transformed solved cube
15 4. Apply the transformations of step 1a and 1b in reverse
16
17The orientation of pieces after a rotation ignores the new position
18of centers. A rotated cube can technically be inconsistent, because
19the parity of the edge permutation has to be adjusted considering the
20parity of the centers, which we ignore.
21
22The utility script mirror.sh transforms a solved, rotated cube to its
23mirrored and rotated version.

Generated with cgit - Back to sebastiano.tronto.net