summaryrefslogtreecommitdiff
path: root/src/search.h
blob: 153b86519d34ac907379e5351a0a411bc1f33edd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef SEARCH_H
#define SEARCH_H

#include "ints.h"

typedef u8 square_t;

typedef struct {
  square_t from;
  square_t to;
} move_t;

typedef struct {
  move_t* moves;
  u32 length;
  u32 capacity;
} moves_t;

moves_t init_moves();
moves_t init_moves_wcapacity(u32 capacity);
moves_t empty_moves();
void add_move(moves_t* moves, square_t from, square_t to);

#endif // !SEARCH_H