aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/moves.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/moves.cpp b/src/moves.cpp
index 81ea1df..9c7991a 100644
--- a/src/moves.cpp
+++ b/src/moves.cpp
@@ -130,7 +130,6 @@ std::vector<Move> GetLegalMoves(Board *b) {
bool isLegal = true;
Board testBoard = *b;
PlayMove(move, &testBoard);
- testBoard.turn = !testBoard.turn;
auto opponentResponse = GetPseudoLegalMoves(&testBoard);
for (Move move : opponentResponse) {
if (testBoard.pieces[PositionToIndex(move.To)].type == KING) {
@@ -145,7 +144,6 @@ std::vector<Move> GetLegalMoves(Board *b) {
bool isCheck = false;
Board testBoard = *b;
- testBoard.turn = !testBoard.turn;
auto opponentResponse = GetPseudoLegalMoves(&testBoard);
for (Move move : opponentResponse) {
if (testBoard.pieces[PositionToIndex(move.To)].type == KING) {