diff options
Diffstat (limited to 'domino.h')
| -rw-r--r-- | domino.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/domino.h b/domino.h new file mode 100644 index 0000000..b08c332 --- /dev/null +++ b/domino.h @@ -0,0 +1,23 @@ +#include <stddef.h> + +#ifndef DOMINO_H +#define DOMINO_H + +struct eye { + int x,y,val; +}; + +struct brick { + struct eye front, back; +}; + +struct bricks { + size_t capacity, count; + union {struct eye *eye; struct brick *brick;} items; +}; + +void bricks_append(struct bricks *bricks, struct brick brick); + +#endif // DOMINO_H + + |
