Skip to content

Commit

Permalink
support liground
Browse files Browse the repository at this point in the history
  • Loading branch information
huynq55-v2 authored Sep 3, 2022
1 parent ae121d2 commit 7c99aae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/uci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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') };
}


Expand Down

3 comments on commit 7c99aae

@mtaktikos
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this liground compatible version! Is it possible for you to change the new Pikafish version (updated 15 Okt 2022) to a liground-compatible branch?

@huynq55
Copy link
Owner

@huynq55 huynq55 commented on 7c99aae Nov 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this liground compatible version! Is it possible for you to change the new Pikafish version (updated 15 Okt 2022) to a liground-compatible branch?

Sorry for late reply. Yes, I can.

@mtaktikos
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much! Your modded Pikafish + liground GUI is the best tool ever for Xiangqi analysis

Please sign in to comment.