summaryrefslogtreecommitdiff
path: root/match.h
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-23 15:50:36 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-23 15:54:12 -0700
commitee146e45b9ccc7f3b5dfd34973df538a42772b84 (patch)
tree3b91beb43a2cac1ad16eefa43b21c6d991d49ac1 /match.h
parent15ff00e056a98ab4210dde3d4461a88849d6c1d4 (diff)
downloaddartboat-ee146e45b9ccc7f3b5dfd34973df538a42772b84.tar.gz
dartboat-ee146e45b9ccc7f3b5dfd34973df538a42772b84.tar.xz
store starting player as part of match data
Diffstat (limited to 'match.h')
-rw-r--r--match.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/match.h b/match.h
index a699f77..b22ed63 100644
--- a/match.h
+++ b/match.h
@@ -32,7 +32,7 @@ struct leg {
struct match {
struct player *players;
int n_players, size_players;
- int active_player;
+ int starting_player, active_player;
struct leg **legs;
};
@@ -51,7 +51,7 @@ void match_add_player(struct match *m, enum player_type type, char *name,
int match_next_player(struct match *m);
int match_prev_player(struct match *m);
-int match_last_player_to_throw(struct match *m);
+int match_prev_throw_player(struct match *m);
int match_winning_player(struct match *m);
bool is_points_valid(int pts, int rem);