bigger refactor in several files
This commit is contained in:
1 parent
8d5024a4a4
commit
0ffc2c77de
7 files changed
+111
-112
No files matched your search
@@ -6,8 +6,27 @@
|
||||
#include "move.h"
|
||||
#include "board.h"
|
||||
|
||||
namespace UTILS {
|
||||
|
||||
// Zobrist //
|
||||
|
||||
// 2[colors] * 6[pieces] * 64[squares]
|
||||
inline U64 zKeys[2][6][64];
|
||||
|
||||
// There are 8 files
|
||||
inline U64 zEnPassant[8];
|
||||
|
||||
// 16 possible castling right variations
|
||||
inline U64 zCastle[16];
|
||||
|
||||
inline U64 zSide;
|
||||
|
||||
void InitZobrist();
|
||||
U64 GetHashKey(Board &board);
|
||||
|
||||
std::vector<std::string> split(std::string_view str, char delim);
|
||||
|
||||
int parseSquare(std::string_view str);
|
||||
|
||||
Move parseMove(Board &board, std::string_view str);
|
||||
}
|
||||
Reference in new issue
Block a user