encapsulated positionIndex and moved isdraw to board class

This commit is contained in:
rektdie committed 2025-04-11 06:19:17 +02:00
1 parent dd6f0b94f5
commit aa0d34eb8e
7 files changed
+35 -41

No files matched your search

+4 -1
View File
@@ -10,7 +10,6 @@ constexpr int noEPTarget = -1;
constexpr int MAX_MOVES = 218;
inline int positionIndex = 0;
inline U64 positionHistory[1000];
class Board {
@@ -40,6 +39,8 @@ public:
int halfMoves = 0;
int fullMoves = 1;
int positionIndex = 0;
U64 hashKey = 0ULL;
void Reset();
@@ -66,4 +67,6 @@ public:
bool MakeMove(Move move);
bool InPossibleZug();
bool IsDraw();
};