]> git.sesse.net Git - stockfish/blobdiff - src/uci.h
Retire notation.h
[stockfish] / src / uci.h
index 87411a44929e93ede02be81d186cf81822566e95..824454b194f22b563d88750987a85785d7aafc56 100644 (file)
--- a/src/uci.h
+++ b/src/uci.h
 #include <map>
 #include <string>
 
 #include <map>
 #include <string>
 
+#include "types.h"
+
+class Position;
+
 namespace UCI {
 
 class Option;
 namespace UCI {
 
 class Option;
@@ -63,6 +67,15 @@ private:
 void init(OptionsMap&);
 void loop(int argc, char* argv[]);
 
 void init(OptionsMap&);
 void loop(int argc, char* argv[]);
 
+std::string score_to_uci(Value v, Value alpha = -VALUE_INFINITE, Value beta = VALUE_INFINITE);
+Move move_from_uci(const Position& pos, std::string& str);
+const std::string move_to_uci(Move m, bool chess960);
+
+inline const std::string to_string(Square s) {
+  char ch[] = { 'a' + file_of(s), '1' + rank_of(s), 0 };
+  return ch;
+}
+
 } // namespace UCI
 
 extern UCI::OptionsMap Options;
 } // namespace UCI
 
 extern UCI::OptionsMap Options;