Simplified making and unmaking moves with helper functions + fixed minor bugs
This commit is contained in:
1 parent
8535042c04
commit
e0444257b3
2 files changed
+50
-72
No files matched your search
+4
-1
@@ -40,7 +40,10 @@ public:
|
||||
|
||||
bool InCheck(bool side);
|
||||
|
||||
void SetPiece(int piece, int square, bool color);
|
||||
void RemovePiece(int piece, int square, bool color);
|
||||
|
||||
void Promote(int square, int pieceType, int color, bool isCapture);
|
||||
void DoMove(Move move);
|
||||
void MakeMove(Move move);
|
||||
void UnmakeMove();
|
||||
};
|
||||
Reference in new issue
Block a user