#ifndef WEB_MATCH_H #define WEB_MATCH_H #include "match.h" enum match_mode { M_FIRST = 1, M_PVC = M_FIRST, M_P, M_PVP, M_LAST = M_PVP }; struct match_state { enum match_mode mode; struct leg *legs[2]; struct leg *active_leg; int active_player; int boat_undone; int num_darts; }; extern struct match_state *state; void free_state(); bool is_match_over(); #endif