summaryrefslogtreecommitdiff
path: root/match.h
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-15 01:18:36 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-15 01:18:36 -0700
commiteda5d1668dbc8529453b7128c4ec2d51aeb1e783 (patch)
tree2ee5072865a761c540be454abcb6871358be65ea /match.h
parent3ffb56f167a1855731b50eebfc484b7cc5f21036 (diff)
downloaddartboat-eda5d1668dbc8529453b7128c4ec2d51aeb1e783.tar.gz
dartboat-eda5d1668dbc8529453b7128c4ec2d51aeb1e783.tar.xz
split code into multiple files
Diffstat (limited to 'match.h')
-rw-r--r--match.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/match.h b/match.h
new file mode 100644
index 0000000..0b44b45
--- /dev/null
+++ b/match.h
@@ -0,0 +1,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