diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-05 09:31:02 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-05 09:42:39 +0200 |
| commit | 9e698917cb5b332cdbf1969ddfe3840239106c8d (patch) | |
| tree | 1125917c5d281aff8acfd94292b8a3d3e370bc2d /utils/FORMAT.txt | |
| parent | 99fabe8592a4022313b1cb0581881ee1bc6b1c99 (diff) | |
| download | nissy-core-9e698917cb5b332cdbf1969ddfe3840239106c8d.tar.gz nissy-core-9e698917cb5b332cdbf1969ddfe3840239106c8d.zip | |
Implemented compose; some cleanup
Diffstat (limited to 'utils/FORMAT.txt')
| -rw-r--r-- | utils/FORMAT.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/utils/FORMAT.txt b/utils/FORMAT.txt new file mode 100644 index 0000000..74e7442 --- /dev/null +++ b/utils/FORMAT.txt | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | The functions readcube() and writecube() use the following format. | ||
| 2 | |||
| 3 | Each edge is represented by two letters denoting the sides it belongs to | ||
| 4 | and one number denoting its orientation (0 oriented, 1 mis-oriented). | ||
| 5 | Similarly, each corner is represented by three letters and a number | ||
| 6 | (0 oriented, 1 twisted clockwise, 2 twisted counter-clockwise). | ||
| 7 | Edge orientation is relative to the F / B axis, corner orientation is | ||
| 8 | relative to the U / D axis. | ||
| 9 | |||
| 10 | The pieces are ordered such that the solved cube looks like this: | ||
| 11 | |||
| 12 | UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 | ||
| 13 | UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 | ||
| 14 | |||
| 15 | Whitespace (including newlines) between pieces is ignored when reading | ||
| 16 | the cube, and a single whitespace character is added between pieces | ||
| 17 | when writing. | ||
| 18 | |||
| 19 | The cube after the moves R'U'F looks like this: | ||
| 20 | |||
| 21 | FL1 BR0 DB0 UR1 UF0 UB0 DL0 FR0 UL1 DF1 BL0 DR0 | ||
| 22 | UBL1 DBR1 UFR2 DFR2 DFL2 UBL2 UFL2 DBL0 | ||
| 23 | |||
| 24 | More formats might be supported in the future. | ||
