diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-02-23 20:52:24 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-02-23 20:52:24 +0100 |
commit | 9b712de308e150cc70cf7571c9debfff17978fd2 (patch) | |
tree | f4dd083f675ce6789f3e9c1e55e1387a0c7ca19d /voerbak/voerbak.h | |
parent | 1a55f52bb79b609cd850a77e2f7a9fdc6b4fbf6b (diff) |
voerbak 2.1.3
Diffstat (limited to 'voerbak/voerbak.h')
-rw-r--r-- | voerbak/voerbak.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/voerbak/voerbak.h b/voerbak/voerbak.h index 0ef6cf9..d44f382 100644 --- a/voerbak/voerbak.h +++ b/voerbak/voerbak.h @@ -1,42 +1,6 @@ #pragma once #include <stdio.h> #include <stdlib.h> -#include <memory.h> -#include <stdbool.h> - -/** - * @brief Structure to store a board - * - * @param width Board width - * @param height Board height - * @param length Board state array length (width * height) - * @param board Board state array - */ -typedef struct { - int width; - int height; - int length; - int* board; -} Board; - -/** - * @brief Print the board array - */ -void printBoard(Board*); - -/** - * @brief Check if the board is full (draw) - * - * @return `true` board is full - */ -bool boardFull(Board*); - -/** - * @brief Drop a disc into the board - * - * @return `true` if drop was successful, `false` if column full - */ -bool dropFisje(Board*, int, int); /** * @brief Main function |