bugfix: NegaMax function got the board as reference
This commit is contained in:
1 parent
9c63c5787d
commit
0638d8c899
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user