fixed slight bug

This commit is contained in:
Karma Riuk 2025-02-07 19:39:52 +01:00
parent 2260cd918a
commit aef6fc39e3
2 changed files with 4 additions and 4 deletions

View File

@ -11,9 +11,9 @@
#include <chrono>
int main(int argc, char* argv[]) {
// std::string pos =
// "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 =
"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";
// pos for ai timing<
// std::string pos =

View File

@ -283,7 +283,7 @@ Board Board::make_move(Move move, bool recurse_call) const {
if (!white_to_play)
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;
exit(1);
}