diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/moves.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/moves.cpp b/src/moves.cpp index 52c8d2f..3cdeafa 100644 --- a/src/moves.cpp +++ b/src/moves.cpp @@ -47,17 +47,6 @@ static void GenerateKnightMoves(Game *b, std::vector<Move> &moves, int next = __builtin_ctzll(knight_attacks); knight_attacks &= knight_attacks - 1; - // maybe remove this line of code - if (next >= 64 || next < 0) { - continue; - } - - // maybe also remove this line of code - const int fileDelta = std::abs((next % 8) - (from % 8)); - if (fileDelta != 1 && fileDelta != 2) { - continue; - }; - bool hasFriendlyPiece = b->turn ? (b->WhitePieceBitboard & (1ULL << next)) > 0 : (b->BlackPieceBitboard & (1ULL << next)) > 0; |
