Add ini.c to MSVC makefile
[polyglot.git] / uci.c
diff --git a/uci.c b/uci.c
index 42b5971..bb6d0b2 100644 (file)
--- a/uci.c
+++ b/uci.c
@@ -130,7 +130,7 @@ void uci_open(uci_t * uci, engine_t * engine) {
    uci->engine = engine;
 
    uci->name = NULL;
-   my_string_set(&uci->name,"<empty>");
+   my_string_set(&uci->name,"unknown");
    uci->author = NULL;
    my_string_set(&uci->author,"<empty>");
    option_init(uci->option);
@@ -330,7 +330,7 @@ int uci_parse(uci_t * uci, const char string[]) {
    ASSERT(string!=NULL);
 
    // init
-
+gui_send(GUI, "# %s\n", string);
    event = EVENT_NONE;
 
    // parse
@@ -715,6 +715,8 @@ static int parse_info(uci_t * uci, const char string[]) {
          ln = my_atoll(argument);
          ASSERT(ln>=0);
 
+         if (ln >= 0) uci->tbhit_nb = ln;
+
       } else if (my_string_equal(option,"time")) {
 
          ASSERT(!my_string_empty(argument));
@@ -897,6 +899,8 @@ static void parse_score(uci_t * uci, const char string[]) {
    parse_add_keyword(parse,"mate");
    parse_add_keyword(parse,"upperbound");
 
+   uci->bound_type = '\0'; // [HGM] bound: assume exact score
+
    // loop
 
    while (parse_get_word(parse,option,StringSize)) {
@@ -919,6 +923,8 @@ static void parse_score(uci_t * uci, const char string[]) {
 
          ASSERT(my_string_empty(argument));
 
+         uci->bound_type = '!';
+
       } else if (my_string_equal(option,"mate")) {
 
          ASSERT(!my_string_empty(argument));
@@ -932,6 +938,8 @@ static void parse_score(uci_t * uci, const char string[]) {
 
          ASSERT(my_string_empty(argument));
 
+         uci->bound_type = '?';
+
       } else {
 
          my_log("POLYGLOT unknown option \"%s\" for command \"%s\"\n",option,command);