Switch to new tbhits protocol
[polyglot.git] / uci.c
diff --git a/uci.c b/uci.c
index eafefe4..64cbdce 100644 (file)
--- a/uci.c
+++ b/uci.c
@@ -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
@@ -899,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)) {
@@ -921,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));
@@ -934,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);