New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Board::get_piece_locations()
causes stack overflow
#117
Comments
Thanks for the report. The problem can be reduced to: let board = Board::start_pos();
let piece_locations = board.get_piece_locations();
for (sq, _) in piece_locations {
println!("{}", sq);
} Something about printing |
I've found the problem: |
What's also blowing up the stack is that |
I think I can make a PullRequest tomorrow or later this day, to fix these issueas |
Thanks for the insights, that seems to be the problem. I remade the The fix is currently in the |
Running
}`
Board::get_piece_locations()
causes a stack overflow when run.This is the code that causes this bug for me:
let board = Board::start_pos()
for (sq, piece) in board.get_piece_locations() {
debug!("{}
{:?}", sq, piece);The text was updated successfully, but these errors were encountered: