X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=dvonn-board.h;fp=dvonn-board.h;h=71923011e0ce07611de88a10454009e4d6f0137a;hb=7e10cab22cd0cd20ff48bf5665f0f7536f1ad032;hp=7a361c3e6e3f3ebc2bdb415f9bae69352b096414;hpb=68e0718609201b5aee4d4371f7766da5a6c8808c;p=dvonn diff --git a/dvonn-board.h b/dvonn-board.h index 7a361c3..7192301 100644 --- a/dvonn-board.h +++ b/dvonn-board.h @@ -100,6 +100,13 @@ dvonn_bool_t dvonn_board_cell_occupied (dvonn_board_t *board, int x, int y); +/* Is the cell at (x,y) occupied by a piece (or stack) with the given + * player's piece at the top. Returns FALSE for all out-of-bounds + * coordinates. */ +dvonn_bool_t +dvonn_board_cell_owned_by (dvonn_board_t *board, + int x, int y, dvonn_player_t player); + /* Is the cell at (x,y) surrounded by other pieces, (such that it is * not legal for a piece at (x,y) to move. */ dvonn_bool_t