diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-08 14:04:11 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-08 14:04:11 +0200 |
| commit | 2edc8c01fba711f4410279b59c784a43cf2dde41 (patch) | |
| tree | 67d6404c4f768ad8b1b4e4916e3b9af9f892a7aa /src/cube.h | |
| parent | 9ef630eefb683dcdbe56e96e51b10bf356f20505 (diff) | |
| download | nissy-core-2edc8c01fba711f4410279b59c784a43cf2dde41.tar.gz nissy-core-2edc8c01fba711f4410279b59c784a43cf2dde41.zip | |
Added write to SRC format
Diffstat (limited to 'src/cube.h')
| -rw-r--r-- | src/cube.h | 11 |
1 files changed, 5 insertions, 6 deletions
| @@ -7,12 +7,11 @@ typedef uint8_t trans_t; | |||
| 7 | 7 | ||
| 8 | extern cube_t solvedcube; | 8 | extern cube_t solvedcube; |
| 9 | 9 | ||
| 10 | /* For the textual representation of the cube, see utils/FORMAT.txt */ | 10 | /* Not all formats are supported for both read and write. */ |
| 11 | cube_t readcube(char *); | 11 | /* See utils/FORMAT.txt for details. */ |
| 12 | void writecube(cube_t, char *); | 12 | typedef enum {H48, SRC} format_t; |
| 13 | 13 | cube_t readcube(format_t, char *); | |
| 14 | /* Writes a cube in C source code format */ | 14 | void writecube(format_t, cube_t, char *); |
| 15 | void writecubesrc(cube_t, char *); | ||
| 16 | 15 | ||
| 17 | bool issolvable(cube_t); | 16 | bool issolvable(cube_t); |
| 18 | bool equal(cube_t, cube_t); | 17 | bool equal(cube_t, cube_t); |
