printing moves normally
This commit is contained in:
parent
4c86d5e815
commit
e5bb2d1a5f
@ -55,11 +55,11 @@ int move_generation_test(Board& b, int depth, int max_depth) {
|
|||||||
int num_pos = 0;
|
int num_pos = 0;
|
||||||
for (const Move& move : moves) {
|
for (const Move& move : moves) {
|
||||||
Board tmp_board = b.make_move(move);
|
Board tmp_board = b.make_move(move);
|
||||||
|
// std::cout << ">" << move << std::endl;
|
||||||
int n = move_generation_test(tmp_board, depth - 1, max_depth);
|
int n = move_generation_test(tmp_board, depth - 1, max_depth);
|
||||||
|
// std::cout << "<" << move << std::endl;
|
||||||
if (depth == max_depth)
|
if (depth == max_depth)
|
||||||
res << Coords::from_index(move.source_square)
|
res << move << ": " << n << std::endl;
|
||||||
<< Coords::from_index(move.target_square) << ": " << n
|
|
||||||
<< std::endl;
|
|
||||||
num_pos += n;
|
num_pos += n;
|
||||||
}
|
}
|
||||||
return num_pos;
|
return num_pos;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user