2025-10-14 15:09:17 +02:00
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#ifndef DOMINO_H
|
|
|
|
#define DOMINO_H
|
|
|
|
|
|
|
|
struct eye {
|
2025-10-14 17:47:34 +02:00
|
|
|
size_t x,y,val;
|
2025-10-14 15:09:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|