25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
26 * POSSIBILITY OF SUCH DAMAGE. |
26 * POSSIBILITY OF SUCH DAMAGE. |
27 * |
27 * |
28 */ |
28 */ |
29 |
29 |
30 #include "terminal-chess.h" |
|
31 #include "input.h" |
30 #include "input.h" |
32 #include "game.h" |
31 #include "game.h" |
|
32 #include "network.h" |
|
33 #include "chess/pgn.h" |
33 #include <ncurses.h> |
34 #include <ncurses.h> |
|
35 #include <stdlib.h> |
34 |
36 |
35 static int client_connect(Server *server, char *host, char *port) { |
37 static int client_connect(Server *server, char *host, char *port) { |
36 if (net_find(server, host, port)) { |
38 if (net_find(server, host, port)) { |
37 addstr("Can't find server"); |
39 addstr("Can't find server"); |
38 return 1; |
40 return 1; |