Added perft function + fixed some move generation bugs(there are still some)

This commit is contained in:
rektdie committed 2024-04-01 22:04:43 +02:00
1 parent 915b93ad5a
commit 5962c37546
6 files changed
+98 -43

No files matched your search

+2 -3
View File
@@ -2,15 +2,14 @@
#include "types.h"
#include "board.h"
#include "movegen.h"
#include "perft.h"
int main() {
initLeaperAttacks();
initSliderAttacks();
Board board;
GenerateMoves(board);
board.ListMoves();
board.PrintBoard();
Perft(board, 4);
return 0;
}