From ee146e45b9ccc7f3b5dfd34973df538a42772b84 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 23 May 2022 15:50:36 -0700 Subject: store starting player as part of match data --- match.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'match.h') 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); -- cgit v1.2.3-70-g09d2