aboutsummaryrefslogtreecommitdiff
path: root/src/cube.h
blob: fcc76dcae08b1383d7f459c596de273e38bbab76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* TODO: ifdef for different implementations */
#include "cube_array.h"

/* For moves and transformations, see constants.h */
typedef uint8_t move_t;
typedef uint8_t trans_t;

extern cube_t solvedcube;

/* For the textual representation of the cube, see utils/FORMAT.txt */
cube_t readcube(char *);
void writecube(cube_t, char *);

bool isconsistent(cube_t);
bool equal(cube_t, cube_t);
bool issolved(cube_t);
bool iserror(cube_t);

int readmoves(char *, move_t *);
void writemoves(move_t *, int, char *);

cube_t move(cube_t, move_t);
cube_t inverse(cube_t);
cube_t compose(cube_t, cube_t);
cube_t transform(cube_t, trans_t);

Generated with cgit - Back to sebastiano.tronto.net