/// the program was compiled) or "Stockfish <Version>", depending on whether
/// Version is empty.
-const string engine_info(bool to_uci) {
+const string engine_info(bool to_uci, bool to_xboard) {
const string months("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec");
string month, day, year;
#endif
ss << (Is64Bit ? " 64" : "")
- << (HasPext ? " BMI2" : (HasPopCnt ? " POPCNT" : ""))
- << (to_uci ? "\nid author ": " by ")
- << "Fabian Fichter";
+ << (HasPext ? " BMI2" : (HasPopCnt ? " POPCNT" : ""));
+
+ if (!to_xboard)
+ ss << (to_uci ? "\nid author ": " by ")
+ << "Fabian Fichter";
return ss.str();
}
#include "types.h"
-const std::string engine_info(bool to_uci = false);
+const std::string engine_info(bool to_uci = false, bool to_xboard = false);
const std::string compiler_info();
void prefetch(void* addr);
void start_logger(const std::string& fname);
#include <string>
#include "evaluate.h"
+#include "misc.h"
#include "partner.h"
#include "search.h"
#include "thread.h"
if (v != "chess")
vars += "," + v;
sync_cout << "feature setboard=1 usermove=1 time=1 memory=1 smp=1 colors=0 draw=0 "
- << "highlight=1 name=0 sigint=0 ping=1 myname=Fairy-Stockfish variants=\""
- << vars << "\""
+ << "highlight=1 name=0 sigint=0 ping=1 myname=\""
+ << engine_info(false, true) << "\" " << "variants=\"" << vars << "\""
<< Options << sync_endl;
sync_cout << "feature done=1" << sync_endl;
}