From 0e8d73bb3edcc8bdff6e3ded442b66f68265059a Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 21 Jun 2020 23:01:57 +0200 Subject: First push --- src/io.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/io.h (limited to 'src/io.h') diff --git a/src/io.h b/src/io.h new file mode 100644 index 0000000..f1b585d --- /dev/null +++ b/src/io.h @@ -0,0 +1,21 @@ +#include + +char *edge_string(int edge); +char *corner_string(int edge); +char *move_string(int move); + +void print_cube_scram(int *scram); + +void copy_moves(int *src, int *dst); +void append_moves(int *src, int *dst); + +int read_moves(char *str, int *a); +int read_moves_from_prompt(int *a); +int read_moves_from_tok(int n, char tok[][100], int *a); + +int uses_niss(int *str); +int unniss(int *src, int *dst); +int invert(int *src, int *dst); +int len(int *scram); + +void print_moves(int move_list[]); -- cgit v1.3