#include "uci.h"\r
#include "util.h"\r
\r
+\r
+// macros\r
+\r
+#define StringSize 4096\r
+\r
// constants\r
\r
static const bool UseDebug = FALSE;\r
static const bool UseTrace = FALSE;\r
\r
-static const int StringSize = 4096;\r
-\r
// variables\r
\r
static int MinDepth;\r
time_tot = 0.0;\r
node_tot = 0.0;\r
\r
- printf("\nEngineName=%s\n",option_get_string("EngineName"));\r
+ printf("\nEngineName=%s\n",option_get_string(Option,"EngineName"));\r
\r
printf("\n[Search parameters: MaxDepth=%d MaxTime=%.1f DepthDelta=%d MinDepth=%d MinTime=%.1f]\n\n",MaxDepth,MaxTime,DepthDelta,MinDepth,MinTime);\r
\r
if (!board_from_fen(board,epd)) ASSERT(FALSE);\r
if (!board_to_fen(board,string,StringSize)) ASSERT(FALSE);\r
\r
- engine_send(Engine,"position fen %s");\r
+ engine_send(Engine,"position fen %s",string);\r
\r
// search\r
\r