diff options
Diffstat (limited to 'match.h')
-rw-r--r-- | match.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -37,10 +37,12 @@ struct match { struct leg **legs; }; -struct leg *leg_init(int points); +struct leg *leg_init(int pts); void leg_free(struct leg *l); void leg_grow_visits(struct leg *l); +struct visit *leg_comp_visit(struct leg *l, bool redo_undone); +struct visit *leg_pts_visit(struct leg *l, int pts); void leg_undo_visit(struct leg *l); void leg_redo_visit(struct leg *l); @@ -53,6 +55,7 @@ int match_next_player(struct match *m); int match_prev_player(struct match *m); int match_prev_throw_player(struct match *m); int match_winning_player(struct match *m); +bool match_first_user_has_thrown(struct match *m); bool is_points_valid(int pts, int rem); |