1 
2 // line.h
3 
4 #ifndef LINE_H
5 #define LINE_H
6 
7 // includes
8 
9 #include "board.h"
10 #include "move.h"
11 #include "util.h"
12 
13 // constants
14 
15 #define LineSize 256
16 
17 // functions
18 
19 extern bool line_is_ok    (const move_t line[]);
20 
21 extern void line_clear    (move_t line[]);
22 extern void line_copy     (move_t dst[], const move_t src[]);
23 
24 extern bool line_from_can (move_t line[], const board_t * board, const char string[], int size);
25 
26 extern bool line_to_can   (const move_t line[], const board_t * board, char string[], int size);
27 extern bool line_to_san   (const move_t line[], const board_t * board, char string[], int size);
28 
29 #endif // !defined LINE_H
30 
31 // end of line.h
32 
33