aboutsummaryrefslogtreecommitdiff
path: root/src/cube.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-10-08 14:04:11 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-10-08 14:04:11 +0200
commit2edc8c01fba711f4410279b59c784a43cf2dde41 (patch)
tree67d6404c4f768ad8b1b4e4916e3b9af9f892a7aa /src/cube.h
parent9ef630eefb683dcdbe56e96e51b10bf356f20505 (diff)
downloadnissy-core-2edc8c01fba711f4410279b59c784a43cf2dde41.tar.gz
nissy-core-2edc8c01fba711f4410279b59c784a43cf2dde41.zip
Added write to SRC format
Diffstat (limited to 'src/cube.h')
-rw-r--r--src/cube.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/cube.h b/src/cube.h
index 3319b1e..129062d 100644
--- a/src/cube.h
+++ b/src/cube.h
@@ -7,12 +7,11 @@ typedef uint8_t trans_t;
7 7
8extern cube_t solvedcube; 8extern 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. */
11cube_t readcube(char *); 11/* See utils/FORMAT.txt for details. */
12void writecube(cube_t, char *); 12typedef enum {H48, SRC} format_t;
13 13cube_t readcube(format_t, char *);
14/* Writes a cube in C source code format */ 14void writecube(format_t, cube_t, char *);
15void writecubesrc(cube_t, char *);
16 15
17bool issolvable(cube_t); 16bool issolvable(cube_t);
18bool equal(cube_t, cube_t); 17bool equal(cube_t, cube_t);

Generated with cgit - Back to sebastiano.tronto.net