bugfix: NegaMax function got the board as reference

This commit is contained in:
rektdie committed 2024-04-30 00:22:32 +02:00
1 parent 9c63c5787d
commit 0638d8c899
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
#include "movegen.h"
#include "evaluate.h"
int NegaMax(Board &board, int depth) {
int NegaMax(Board board, int depth) {
if (depth == 0) return Evaluate(board);
GenerateMoves(board, board.sideToMove);