summaryrefslogtreecommitdiff
path: root/match.h
blob: 0b44b458dc489aa355d9fe95b3df5181d3eb7d1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef MATCH_H
#define MATCH_H

#include "board.h"

struct visit {
	int points;
	int rem;
	int n_darts;
	struct segment *darts;
};

struct leg {
	char *name;
	int start;
	int rem;
	int n_visits;
	struct visit *visits;
};

struct leg *leg_init(int points, char *name);
void leg_free(struct leg *l);

#endif