X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.h;fp=src%2Fuci.h;h=824454b194f22b563d88750987a85785d7aafc56;hp=87411a44929e93ede02be81d186cf81822566e95;hb=aa60c80adec4d537c5dbd8d60b3d08ce0a807d9a;hpb=5cbcff55cc3a2ff78dd83e7a3f94c5414946f82c diff --git a/src/uci.h b/src/uci.h index 87411a44..824454b1 100644 --- a/src/uci.h +++ b/src/uci.h @@ -23,6 +23,10 @@ #include #include +#include "types.h" + +class Position; + namespace UCI { class Option; @@ -63,6 +67,15 @@ private: 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;