27 * |
27 * |
28 */ |
28 */ |
29 |
29 |
30 #include <stdlib.h> |
30 #include <stdlib.h> |
31 #include <stdio.h> |
31 #include <stdio.h> |
32 #include <getopt.h> |
32 #include <ncurses.h> |
33 #include "network.h" |
33 #include "network.h" |
34 |
34 |
35 #ifndef TERMINAL_CHESS_H |
35 #ifndef TERMINAL_CHESS_H |
36 #define TERMINAL_CHESS_H |
36 #define TERMINAL_CHESS_H |
37 |
37 |
38 #ifdef __cplusplus |
38 #ifdef __cplusplus |
39 extern "C" { |
39 extern "C" { |
40 #endif |
40 #endif |
41 |
41 |
42 #define WHITE 0 |
42 WINDOW* tchess_window; |
43 #define BLACK 1 |
43 |
44 #define TIME_MAX UINT16_MAX |
44 #define TIME_MAX UINT16_MAX |
45 |
45 |
46 typedef struct { |
46 typedef struct { |
47 uint8_t servercolor; |
47 uint8_t servercolor; |
48 uint16_t time; |
48 uint16_t time; |