24 lines
319 B
C
24 lines
319 B
C
![]() |
#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
|
||
|
|
||
|
|