X-Git-Url: https://git.cworth.org/git?p=dvonn;a=blobdiff_plain;f=dvonn-board.h;fp=dvonn-board.h;h=7a361c3e6e3f3ebc2bdb415f9bae69352b096414;hp=66464d8dee95d9fbd421dfc466cb70e6b3dfada9;hb=c1c2fe84387af8e7d9fdea36fedc4482b48027c1;hpb=74df2492e8c32df37d886dec4baf9344dc6b8cff diff --git a/dvonn-board.h b/dvonn-board.h index 66464d8..7a361c3 100644 --- a/dvonn-board.h +++ b/dvonn-board.h @@ -88,6 +88,12 @@ dvonn_board_move (dvonn_board_t *board, int x2, int y2, char **error); +/* Pass rather than moving, allowing the turn to pass to the + * opponent. This should only be allowed if there are no legal moves, + * but that is not yet enforced. Returns TRUE if the pass succeeds. */ +int +dvonn_board_pass (dvonn_board_t *board); + /* Is the cell at (x,y) occupied by a piece. Returns FALSE for all * out-of-bounds coordinates. */ dvonn_bool_t