diff options
author | tomsmeding <tom.smeding@gmail.com> | 2018-03-12 11:47:26 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2018-03-12 11:47:26 +0100 |
commit | 56029c1a5c6d901c602713488c2b8d19b195620b (patch) | |
tree | 7ff65952b8acdcdbb58912b1be4833b4c64d13f8 | |
parent | b26b8840e2cebec9ea8294d24ceb6663942005d4 (diff) |
We were playing mirror chess
-rw-r--r-- | board.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |