summaryrefslogtreecommitdiff
path: root/match.h
blob: 9cdb261a68070415a9b5eec16a9c2326be26ce66 (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
25
#ifndef MATCH_H
#define MATCH_H

#include "board.h"

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

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