aboutsummaryrefslogtreecommitdiff
path: root/src/board.h
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-11-08 02:11:35 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-08 02:11:35 +0000
commit08fcd58893b5ea754ebddbf63b2745dde34d4830 (patch)
tree6e121100ec1aceccd2a6032c90bf11d1dd16ef8f /src/board.h
downloadlab-01-master.tar.gz
publishHEADmaster
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