From daf87292ef5e3bcff63b4afb3dfa7d903b24b63d Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 28 Jul 2026 15:33:28 +0200 Subject: fixing the hell of a bug --- src/moves.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/moves.cpp') diff --git a/src/moves.cpp b/src/moves.cpp index 9841e4b..638e01a 100644 --- a/src/moves.cpp +++ b/src/moves.cpp @@ -190,6 +190,7 @@ std::vector GetLegalMoves(Game *b) { bool isCheck = false; Game testBoard = *b; + testBoard.turn = !testBoard.turn; auto opponentResponse = GetPseudoLegalMoves(&testBoard); for (Move move : opponentResponse) { if (testBoard.pieces[PositionToIndex(move.To)].type == KING) { -- cgit v1.2.3