diff options
| author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-23 23:15:34 -0700 | 
|---|---|---|
| committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-23 23:15:34 -0700 | 
| commit | 85c101979a181a76e6250fb1abb75216e08384a3 (patch) | |
| tree | 00985c1d0823581376672107eab5345a31ff0443 /match.h | |
| parent | ee146e45b9ccc7f3b5dfd34973df538a42772b84 (diff) | |
| download | dartboat-85c101979a181a76e6250fb1abb75216e08384a3.tar.gz dartboat-85c101979a181a76e6250fb1abb75216e08384a3.tar.xz | |
move more match logic from web to lib
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); | 
