major bugfix in null moving | bench 4120864
This commit is contained in:
1 parent
41fed91fc2
commit
96bf73a263
1 file changed
+1
-4
+1
-4
@@ -6,8 +6,6 @@
|
||||
#include <string_view>
|
||||
#include "utils.h"
|
||||
|
||||
static inline int prevEPTarget = noEPTarget;
|
||||
|
||||
void Board::Init() {
|
||||
SetByFen(StartingFen);
|
||||
}
|
||||
@@ -225,8 +223,7 @@ void Board::MakeMove(Move move) {
|
||||
|
||||
// Null Move
|
||||
if (!move) {
|
||||
int newEpTarget = prevEPTarget;
|
||||
prevEPTarget = enPassantTarget;
|
||||
int newEpTarget = noEPTarget;
|
||||
|
||||
sideToMove = !sideToMove;
|
||||
hashKey ^= zSide;
|
||||
|
||||
Reference in new issue
Block a user