From eda5d1668dbc8529453b7128c4ec2d51aeb1e783 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Fri, 15 Apr 2022 01:18:36 -0700 Subject: split code into multiple files --- match.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 match.h (limited to 'match.h') 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 -- cgit v1.2.3-70-g09d2