aboutsummaryrefslogtreecommitdiff
path: root/voerbak/board.h
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-02-26 11:16:17 +0100
committerlonkaars <l.leblansch@gmail.com>2021-02-26 11:16:17 +0100
commit16983d110e90972ceed4ca6d65473d038c9cb854 (patch)
tree6518252492f186186b1446cb85f65fd60609c980 /voerbak/board.h
parent4979a5ec8b88f7a385b7ec6ed5a26bbcfe4ff7f3 (diff)
diewertje beginnings
Diffstat (limited to 'voerbak/board.h')
-rw-r--r--voerbak/board.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/voerbak/board.h b/voerbak/board.h
index 9b4c2f6..47f39b2 100644
--- a/voerbak/board.h
+++ b/voerbak/board.h
@@ -27,6 +27,15 @@ typedef struct {
Board* createBoard(int, int);
/**
+ * @brief Create a copy of board
+ *
+ * @param board Original board
+ *
+ * @return Pointer to new board
+ */
+Board* createCopy(Board*);
+
+/**
* @brief Print the board array
*/
void printBoard(Board*);
@@ -41,7 +50,7 @@ bool boardFull(Board*);
/**
* @brief Drop a disc into the board
*
- * @return `true` if drop was successful, `false` if column full
+ * @return New disc position or -1 if disc wasn't dropped
*/
-bool dropFisje(Board*, int, int);
+int dropFisje(Board*, int, int);