diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-19 22:03:17 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-19 22:03:17 +0100 |
| commit | 2c8ad86805516211103df1ef7552d882f54748c3 (patch) | |
| tree | fd3b1927a94c8aea02e6090cb9b441997fd7206d /cube.h | |
| parent | bb5abea645a31832e9d6a94cea09714a9b1632e3 (diff) | |
| download | nissy-core-2c8ad86805516211103df1ef7552d882f54748c3.tar.gz nissy-core-2c8ad86805516211103df1ef7552d882f54748c3.zip | |
Removed src cube type, kept only H48 and LST (for now)
Diffstat (limited to '')
| -rw-r--r-- | cube.h | 14 |
1 files changed, 3 insertions, 11 deletions
| @@ -86,20 +86,12 @@ Multiple representations of the cube as text are supported: | |||
| 86 | If OUT is the output in SRC format, one can use `cube_t cube = OUT` to | 86 | If OUT is the output in SRC format, one can use `cube_t cube = OUT` to |
| 87 | declare a new cube object. | 87 | declare a new cube object. |
| 88 | 88 | ||
| 89 | - LST: similar to SRC, but only a list of comma-separated numbers is printed. | 89 | - LST: a format for internal use and generating code. |
| 90 | 90 | The cube is printed as a comma-separated list of 20 integers, as they appear | |
| 91 | Not all formats are supported for both reading and writing. More formats | 91 | in cube_t. Corners come first, followed by edge (unlike H48). |
| 92 | may be supported in the future. | ||
| 93 | ******************************************************************************/ | 92 | ******************************************************************************/ |
| 94 | 93 | ||
| 95 | /* Reads a cube from buf in the specified format, and return it. | ||
| 96 | * Supported formats: "H48". | ||
| 97 | */ | ||
| 98 | cube_t readcube(char *format, char *buf); | 94 | cube_t readcube(char *format, char *buf); |
| 99 | |||
| 100 | /* Write the given cube to buf in the specified format. | ||
| 101 | * Supported formats: "H48", "SRC", "LST". | ||
| 102 | */ | ||
| 103 | void writecube(char *format, cube_t cube, char *buf); | 95 | void writecube(char *format, cube_t cube, char *buf); |
| 104 | 96 | ||
| 105 | /****************************************************************************** | 97 | /****************************************************************************** |
