added UnmakeMove function to unmake the last move

This commit is contained in:
rektdie committed 2024-03-31 22:44:42 +02:00
1 parent 025ae1eceb
commit 8535042c04
3 files changed
+102 -6

No files matched your search

+2 -1
View File
@@ -21,7 +21,7 @@ public:
int halfMoves = 0;
int fullMoves = 0;
Move lastMove;
LastMove lastMove;
std::array<bool, 4> castlingRights = { false, false, false, false };
int enPassantTarget;
@@ -42,4 +42,5 @@ public:
void Promote(int square, int pieceType, int color, bool isCapture);
void DoMove(Move move);
void UnmakeMove();
};