X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.h;h=303514f7ffd2655a3e4c1dff2b36bab1f6ff3454;hp=92b97461faee9e883b6fbc85adcd22c35d731212;hb=11a79809767e60897e0b015651db30ce1d36b69a;hpb=d58176bfead421088bb3543b3cb6d1c359a3c91b diff --git a/src/misc.h b/src/misc.h index 92b97461..303514f7 100644 --- a/src/misc.h +++ b/src/misc.h @@ -41,6 +41,11 @@ extern void dbg_mean_of(int v); extern void dbg_print_hit_rate(); extern void dbg_print_mean(); +class Position; +extern Move move_from_uci(const Position& pos, const std::string& str); +extern const std::string move_to_uci(Move m, bool chess960); +extern const std::string move_to_san(Position& pos, Move m); + struct Log : public std::ofstream { Log(const std::string& f = "log.txt") : std::ofstream(f.c_str(), std::ios::out | std::ios::app) {} ~Log() { if (is_open()) close(); }