-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed two major bugs, added utility code
added save/load for transposition table, fixed cutoffs when transposing to upper/lower bounds fixed late move reductions changed depth of outcome evals in transposition table added run_search.cpp
- Loading branch information
1 parent
84b45a5
commit f4bc4e5
Showing
6 changed files
with
74 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "bread_engine_core.hpp" | ||
#include <iostream> | ||
int main(){ | ||
Engine engine = Engine(); | ||
std::vector<std::string> fens = { | ||
"r2qkbnr/1pp2ppp/p1p5/4p3/4P1b1/5N1P/PPPP1PP1/RNBQ1RK1 b kq - 0 6", | ||
}; | ||
|
||
for (int i = 0; i < fens.size(); i++){ | ||
chess::Move best; | ||
std::cout << fens[i] << "\n"; | ||
best = engine.search(fens[i], 13878, 7, 7); | ||
std::cout << "best move " << best << "\n"; | ||
std::cout << "eval " << best.score() << std::endl; | ||
std::cout << engine.search_depth << std::endl; | ||
engine.transposition_table.info(); | ||
} | ||
return 0; | ||
} |