| 27 * |
27 * |
| 28 */ |
28 */ |
| 29 |
29 |
| 30 #define PROGRAM_VERSION "1.0 alpha" |
30 #define PROGRAM_VERSION "1.0 alpha" |
| 31 |
31 |
| 32 #include "chess/rules.h" |
32 #include <curses.h> |
| 33 #include "chess/pgn.h" |
|
| 34 #include "input.h" |
|
| 35 #include "network.h" |
|
| 36 #include "colors.h" |
|
| 37 #include <string.h> |
33 #include <string.h> |
| 38 #include <time.h> |
34 #include <time.h> |
| 39 #include <locale.h> |
35 #include <locale.h> |
| 40 #include <sys/stat.h> |
36 #include <sys/stat.h> |
| 41 #include <signal.h> |
37 #include <signal.h> |
| 42 #include <errno.h> |
38 #include <errno.h> |
| 43 #include <unistd.h> |
39 #include <unistd.h> |
| 44 #include <getopt.h> |
40 #include <getopt.h> |
| 45 #include <curses.h> |
41 |
| |
42 #include "chess/rules.h" |
| |
43 #include "chess/pgn.h" |
| |
44 #include "input.h" |
| |
45 #include "network.h" |
| |
46 #include "colors.h" |
| 46 |
47 |
| 47 typedef struct { |
48 typedef struct { |
| 48 /** |
49 /** |
| 49 * Server host address. |
50 * Server host address. |
| 50 * TCP: server address or \c NULL when we are the server |
51 * TCP: server address or \c NULL when we are the server |