From 7c99aaea0260c7232726e11e16dec830e1619d2a Mon Sep 17 00:00:00 2001 From: huynq55 Date: Sat, 3 Sep 2022 12:42:52 +0700 Subject: [PATCH] support liground --- src/uci.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/uci.cpp b/src/uci.cpp index 16d82672..c5ecef50 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -343,7 +343,9 @@ string UCI::wdl(Value v, int ply) { /// UCI::square() converts a Square to a string in algebraic notation (g1, a7, etc.) std::string UCI::square(Square s) { - return std::string{ char('a' + file_of(s)), char('0' + rank_of(s)) }; + if (rank_of(s) < 9) + return std::string{ char('a' + file_of(s)), char('1' + rank_of(s)) }; + else return std::string{ char('a' + file_of(s)), char('1'), char('0') }; }