blob: 7ce113e9870a00034746f11bfdcce0448d1d1641 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef INCLUDED_BOARD_H
#define INCLUDED_BOARD_H
#include <inttypes.h>
#include <stdbool.h>
#include "bitarray.h"
struct board {
struct bitarray bitarray;
uint32_t rows;
uint32_t cols;
};
void board_init (struct board *, uint32_t rows, uint32_t cols);
void board_free (struct board *);
void board_set (struct board *, int32_t row, int32_t col, bool);
bool board_get (struct board *, int32_t row, int32_t col);
#endif
|