fixed bugs in hashKey generation + added incremental updates to it
This commit is contained in:
1 parent
436f2d7164
commit
2e984643c0
5 files changed
+58
-16
No files matched your search
+11
@@ -1,5 +1,16 @@
|
||||
#pragma once
|
||||
#include "board.h"
|
||||
|
||||
// 2[colors] * 6[pieces] * 64[squares]
|
||||
extern U64 zKeys[2][6][64];
|
||||
|
||||
// There are 8 files
|
||||
extern U64 zEnPassant[8];
|
||||
|
||||
// 16 possible castling right variations
|
||||
extern U64 zCastle[16];
|
||||
|
||||
extern U64 zSide;
|
||||
|
||||
void InitZobrist();
|
||||
U64 GetHashKey(Board &board);
|
||||
Reference in new issue
Block a user