diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-19 10:40:49 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-19 10:40:49 +0100 |
| commit | 13275a4bb8696e730a4fffdd05b8e1d046e489c6 (patch) | |
| tree | 4db3ed3ada41158c451188c98e74fdde5ea296b2 /cube.h | |
| parent | d6fdf14d5c320bdca455f910d58d652c5a7827da (diff) | |
| download | nissy-core-13275a4bb8696e730a4fffdd05b8e1d046e489c6.tar.gz nissy-core-13275a4bb8696e730a4fffdd05b8e1d046e489c6.zip | |
Simplified cube definition for move and transformations even more
Diffstat (limited to '')
| -rw-r--r-- | cube.h | 11 |
1 files changed, 4 insertions, 7 deletions
| @@ -83,13 +83,10 @@ Multiple representations of the cube as text are supported: | |||
| 83 | cube. A single whitespace character is added between pieces when writing. | 83 | cube. A single whitespace character is added between pieces when writing. |
| 84 | 84 | ||
| 85 | - SRC: format used to generate code for internal use. | 85 | - SRC: format used to generate code for internal use. |
| 86 | In cube.c, a type called cube_array_t is defined and used for basic, | 86 | If OUT is the output in SRC format, one can use `cube_t cube = OUT` to |
| 87 | non-performance-critical methods. If OUT is the output in SRC format, | 87 | declare a new cube object. |
| 88 | the following line can be used to declare a new cube object: | ||
| 89 | 88 | ||
| 90 | cube_array_t cube = OUT | 89 | - LST: similar to SRC, but only a list of comma-separated numbers is printed. |
| 91 | |||
| 92 | - AVX: analogue to SRC, but for the AVX2 internal representation of the cube. | ||
| 93 | 90 | ||
| 94 | Not all formats are supported for both reading and writing. More formats | 91 | Not all formats are supported for both reading and writing. More formats |
| 95 | may be supported in the future. | 92 | may be supported in the future. |
| @@ -101,7 +98,7 @@ may be supported in the future. | |||
| 101 | cube_t readcube(char *format, char *buf); | 98 | cube_t readcube(char *format, char *buf); |
| 102 | 99 | ||
| 103 | /* Write the given cube to buf in the specified format. | 100 | /* Write the given cube to buf in the specified format. |
| 104 | * Supported formats: "H48", "SRC", "AVX". | 101 | * Supported formats: "H48", "SRC", "LST". |
| 105 | */ | 102 | */ |
| 106 | void writecube(char *format, cube_t cube, char *buf); | 103 | void writecube(char *format, cube_t cube, char *buf); |
| 107 | 104 | ||
