summaryrefslogtreecommitdiff
path: root/domino.h
blob: 31f308408ca025d6becc83e441f211b857c4020e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stddef.h>

#ifndef DOMINO_H
#define DOMINO_H

struct eye {
  int x,y,val,vertical;
};

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