generating pawn moves

This commit is contained in:
rektdie committed 2025-03-24 00:33:21 +01:00
1 parent 55c751fb89
commit 28ce0bc64c
8 files changed
+134 -598

No files matched your search

+2 -5
View File
@@ -65,8 +65,7 @@ void Board::SetByFen(std::string_view fen) {
occupied = colors[White] | colors[Black];
hashKey = UTILS::GetHashKey(*this);
MOVEGEN::GenerateMoves(*this);
MOVEGEN::GenAttackMaps(*this);
MOVEGEN::GenerateMoves<All>(*this);
}
void Board::PrintBoard() {
@@ -339,9 +338,7 @@ void Board::MakeMove(Move move) {
}
enPassantTarget = newEpTarget;
MOVEGEN::GenAttackMaps(*this);
positionIndex++;
positionHistory[positionIndex] = hashKey;
}