From b806cc058bd001dbfbc28412d29eae7f4d8005df Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 11 Aug 2026 10:30:29 +0200 Subject: polishing --- src/misc.cpp | 9 ++------- src/misc.hpp | 5 ++--- src/uci.cpp | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/misc.cpp b/src/misc.cpp index 6e87351..79cf74f 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -1,14 +1,9 @@ #include "misc.hpp" #include "moves.hpp" #include -#include +#include -std::string version = "1"; -std::string name = "Mono"; - -std::string engine_version() { return name + " " + version; }; - -std::string engine_info() { return engine_version() + "\n"; } +std::string_view engine_info() { return "Mono 1\n"; } uint64_t MoveGenTest(int depth, Game *g) { uint64_t num = 0; diff --git a/src/misc.hpp b/src/misc.hpp index c84edef..6d269b0 100644 --- a/src/misc.hpp +++ b/src/misc.hpp @@ -3,10 +3,9 @@ #include "board/board.hpp" #include -#include +#include -std::string engine_info(); -std::string engine_version(); +std::string_view engine_info(); uint64_t MoveGenTest(int depth, Game *g); diff --git a/src/uci.cpp b/src/uci.cpp index 5a4726a..23fe123 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -196,7 +196,7 @@ void Uci() { DebugBitboards(&game); } if (cmd == "uci") { - cout << "id name " << engine_version() << "\n"; + cout << "id name " << engine_info(); cout << "uciok\n"; cout.flush(); } -- cgit v1.2.3