From: ianfab Date: Mon, 2 Jul 2018 21:53:31 +0000 (+0200) Subject: Fix tablebase initialization (#2) X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=0847a981a769ee1d35f2371504fe12af34c6a622;p=fairystockfish.git Fix tablebase initialization (#2) --- diff --git a/src/syzygy/tbprobe.cpp b/src/syzygy/tbprobe.cpp index 3951140..6490298 100644 --- a/src/syzygy/tbprobe.cpp +++ b/src/syzygy/tbprobe.cpp @@ -67,7 +67,8 @@ inline WDLScore operator-(WDLScore d) { return WDLScore(-int(d)); } inline Square operator^=(Square& s, int i) { return s = Square(int(s) ^ i); } inline Square operator^(Square s, int i) { return Square(int(s) ^ i); } -const std::string PieceToChar = " PNBRQK pnbrqk"; +const std::string PieceToChar( " PNBRQ" + std::string(KING - QUEEN - 1, ' ') + "K" + std::string(PIECE_TYPE_NB - KING - 1, ' ') + + " pnbrq" + std::string(KING - QUEEN - 1, ' ') + "k" + std::string(PIECE_TYPE_NB - KING - 1, ' ')); int MapPawns[SQUARE_NB]; int MapB1H1H7[SQUARE_NB];