generating pawn moves
This commit is contained in:
1 parent
55c751fb89
commit
28ce0bc64c
8 files changed
+134
-598
No files matched your search
+2
-5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user