fixed slight bug
This commit is contained in:
parent
2260cd918a
commit
aef6fc39e3
@ -11,9 +11,9 @@
|
|||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
// std::string pos =
|
std::string pos =
|
||||||
// "r2qkb1r/2p1pppp/p1n1b3/1p6/B2P4/2P1P3/P4PPP/R1BQK1NR w KQkq - 0 9 ";
|
"r2qkb1r/2p1pppp/p1n1b3/1p6/B2P4/2P1P3/P4PPP/R1BQK1NR w KQkq - 0 9 ";
|
||||||
std::string pos = "8/6K1/5P2/8/1k6/8/8/8 w - - 0 1";
|
// std::string pos = "8/6K1/5P2/8/1k6/8/8/8 w - - 0 1";
|
||||||
|
|
||||||
// pos for ai timing<
|
// pos for ai timing<
|
||||||
// std::string pos =
|
// std::string pos =
|
||||||
|
@ -283,7 +283,7 @@ Board Board::make_move(Move move, bool recurse_call) const {
|
|||||||
if (!white_to_play)
|
if (!white_to_play)
|
||||||
ret.n_full_moves = n_full_moves + 1;
|
ret.n_full_moves = n_full_moves + 1;
|
||||||
|
|
||||||
if (ret.n_half_moves > 20) {
|
if (ret.n_half_moves > 150) {
|
||||||
std::cerr << "too many recursions" << std::endl;
|
std::cerr << "too many recursions" << std::endl;
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user