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 <string_view>
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
static inline int prevEPTarget = noEPTarget;
|
|
||||||
|
|
||||||
void Board::Init() {
|
void Board::Init() {
|
||||||
SetByFen(StartingFen);
|
SetByFen(StartingFen);
|
||||||
}
|
}
|
||||||
@@ -225,8 +223,7 @@ void Board::MakeMove(Move move) {
|
|||||||
|
|
||||||
// Null Move
|
// Null Move
|
||||||
if (!move) {
|
if (!move) {
|
||||||
int newEpTarget = prevEPTarget;
|
int newEpTarget = noEPTarget;
|
||||||
prevEPTarget = enPassantTarget;
|
|
||||||
|
|
||||||
sideToMove = !sideToMove;
|
sideToMove = !sideToMove;
|
||||||
hashKey ^= zSide;
|
hashKey ^= zSide;
|
||||||
|
|||||||
Reference in new issue
Block a user