Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions com.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ int input() {
#include "sys/select.h"
int com_init()
{
setvbuf(stdin, NULL, _IONBF, 0);
setvbuf(stdout, NULL, _IONBF, 0);

chronos.movetime = 5000;
chronos.flags = FMOVETIME;

return 0;
}

int input()
Expand Down Expand Up @@ -328,6 +334,7 @@ int com_uci(char * command) {

int com_send(char * command) {
printf("%s\n",command);
fflush(stdout);
return 0;
}

Expand Down