]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
There is no need to special case KNNK ending
[stockfish] / src / uci.cpp
index 4a333f70b7540b2d660070bf6579cfaafaa5cc50..36848d83cd387b4f91ecdbc3df3bfb8f80aa021e 100644 (file)
@@ -117,13 +117,13 @@ namespace {
     if (token == "uci")
     {
         cout << "id name " << engine_name()
-             << "\nid author Tord Romstad, Marco Costalba\n";
+             << "\nid author Tord Romstad, Marco Costalba, Joona Kiiski\n";
         print_uci_options();
         cout << "uciok" << endl;
     }
     else if (token == "ucinewgame")
     {
-        TT.clear();
+        push_button("Clear Hash");
         Position::init_piece_square_tables();
         RootPosition.from_fen(StartPosition);
     }
@@ -242,7 +242,10 @@ namespace {
         }
         if (token == "value")
         {
-            getline(uip, token); // reads until end of line
+            // Reads until end of line and left trim white space
+            getline(uip, token);
+            token.erase(0, token.find_first_not_of(" \n\r\t"));
+
             set_option_value(name, token);
         } else
             push_button(name);