Пример #1
0
int main(){
	/*init();
	BOARD board[1];
	MOVELIST list[1];
	SEARCHINFO info[1];
	setPos("rnbqkb1r/pp1p1ppp/2p5/4P3/2B5/8/PPP1NnPP/RNBQK2R w KQkq - 0 6", board); // Invoegen fifty rule from fen
	info->depth = 6;
	initPvTable(board->pvTable);
	searchPos(board, info);
	getchar();
	return 0;*/
	init();
	uciLoop();
	return 0;
}
Пример #2
0
int main() {
  setbuf(stdout, NULL);

  char* logPath = "uciLogs.txt";

  FILE* log = NULL;
  log = fopen(logPath, "w");
  if (log == NULL)
    manageErrors("can't create log file");

  srand(time(NULL));

  char buffer[UCI_SIZE] = "";

  Graph graph;
  graph_alloc(&graph);

  while (uciLoop(log, buffer, &graph)) {}

  graph_free(&graph);
  fclose(log);

  return EXIT_SUCCESS;
}
Пример #3
0
int main(int argc, const char * argv[])
{

    return uciLoop(); // run the main loop
}