mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 13:17:44 +00:00
Retire operator|(File f, Rank r)
Use make_square() instead. Less fancy but more clear. No functional change.
This commit is contained in:
+1
-1
@@ -70,7 +70,7 @@ const string move_to_uci(Move m, bool chess960) {
|
||||
return "0000";
|
||||
|
||||
if (type_of(m) == CASTLING && !chess960)
|
||||
to = (to > from ? FILE_G : FILE_C) | rank_of(from);
|
||||
to = make_square(to > from ? FILE_G : FILE_C, rank_of(from));
|
||||
|
||||
string move = to_string(from) + to_string(to);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user