From 0847a981a769ee1d35f2371504fe12af34c6a622 Mon Sep 17 00:00:00 2001 From: ianfab Date: Mon, 2 Jul 2018 23:53:31 +0200 Subject: [PATCH] Fix tablebase initialization (#2) --- src/syzygy/tbprobe.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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]; -- 1.7.0.4