From 56029c1a5c6d901c602713488c2b8d19b195620b Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Mon, 12 Mar 2018 11:47:26 +0100 Subject: We were playing mirror chess --- board.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/board.cpp b/board.cpp index c49339a..75579e0 100644 --- a/board.cpp +++ b/board.cpp @@ -13,15 +13,15 @@ static inline int homerowY(int clr) { Board::Board() { - bd[0] = -ROOK; bd[1] = -KNIGHT; bd[2] = -BISHOP; bd[3] = -KING; - bd[4] = -QUEEN; bd[5] = -BISHOP; bd[6] = -KNIGHT; bd[7] = -ROOK; + bd[0] = -ROOK; bd[1] = -KNIGHT; bd[2] = -BISHOP; bd[3] = -QUEEN; + bd[4] = -KING; bd[5] = -BISHOP; bd[6] = -KNIGHT; bd[7] = -ROOK; for (int i = 8; i < 16; i++) bd[i] = -PAWN; memset(bd + 16, 0, 32 * sizeof(int)); for (int i = 48; i < 56; i++) bd[i] = PAWN; - bd[56] = ROOK; bd[57] = KNIGHT; bd[58] = BISHOP; bd[59] = KING; - bd[60] = QUEEN; bd[61] = BISHOP; bd[62] = KNIGHT; bd[63] = ROOK; + bd[56] = ROOK; bd[57] = KNIGHT; bd[58] = BISHOP; bd[59] = QUEEN; + bd[60] = KING; bd[61] = BISHOP; bd[62] = KNIGHT; bd[63] = ROOK; pieceScore[0] = pieceScore[1] = 0; lastTarget = -1; -- cgit v1.2.3-70-g09d2