enabled compiler optimizations + sped up search a little bit
This commit is contained in:
1 parent
d89956a2fb
commit
a23918ab8d
3 files changed
+9
-11
No files matched your search
+2
-5
@@ -1,8 +1,5 @@
|
||||
#include <iostream>
|
||||
#include "types.h"
|
||||
#include "board.h"
|
||||
#include "movegen.h"
|
||||
#include "perft.h"
|
||||
#include "uci.h"
|
||||
|
||||
int main() {
|
||||
@@ -11,7 +8,7 @@ int main() {
|
||||
|
||||
Board board;
|
||||
|
||||
UCILoop(board);
|
||||
UCILoop(board);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
+5
-4
@@ -40,6 +40,11 @@ int Quiescence(Board board, int alpha, int beta) {
|
||||
}
|
||||
|
||||
int NegaMax(Board board, int depth, int alpha, int beta, bool isRoot) {
|
||||
if (depth == 0) {
|
||||
return Quiescence(board, -50000, 50000);
|
||||
//return Evaluate(board);
|
||||
}
|
||||
|
||||
GenerateMoves(board, board.sideToMove);
|
||||
|
||||
if (board.moveList.size() == 0) {
|
||||
@@ -50,10 +55,6 @@ int NegaMax(Board board, int depth, int alpha, int beta, bool isRoot) {
|
||||
}
|
||||
}
|
||||
|
||||
if (depth == 0) {
|
||||
return Quiescence(board, -50000, 50000);
|
||||
//return Evaluate(board);
|
||||
}
|
||||
|
||||
int max = -50000;
|
||||
|
||||
|
||||
Reference in new issue
Block a user