From 83af5f0b978a8bf0ca368fef7f477bc38a761907 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Mon, 3 Feb 2025 15:35:43 +0100 Subject: [PATCH] removed problemaic code --- cpp/src/pieces/king.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/cpp/src/pieces/king.cpp b/cpp/src/pieces/king.cpp index 02b14b7..c78f926 100644 --- a/cpp/src/pieces/king.cpp +++ b/cpp/src/pieces/king.cpp @@ -45,8 +45,6 @@ std::vector king_moves(const Board& b, const Coords xy) { } } - if (b.is_check_for(b.colour_at(xy))) - return ret; // -- Castles int8_t castling_rights = b.colour_at(xy) == Colour::White