aboutsummaryrefslogtreecommitdiff
path: root/src/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/board.h')
-rw-r--r--src/board.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/board.h b/src/board.h
new file mode 100644
index 0000000..7ce113e
--- /dev/null
+++ b/src/board.h
@@ -0,0 +1,19 @@
1#ifndef INCLUDED_BOARD_H
2#define INCLUDED_BOARD_H
3
4#include <inttypes.h>
5#include <stdbool.h>
6#include "bitarray.h"
7
8struct board {
9 struct bitarray bitarray;
10 uint32_t rows;
11 uint32_t cols;
12};
13
14void board_init (struct board *, uint32_t rows, uint32_t cols);
15void board_free (struct board *);
16void board_set (struct board *, int32_t row, int32_t col, bool);
17bool board_get (struct board *, int32_t row, int32_t col);
18
19#endif