MitchelPaulin / Walleye

A chess engine written from scratch in Rust ♞
MIT License
121 stars 6 forks source link

Bug when trying to checkmate #15

Open Dopplerian opened 2 years ago

Dopplerian commented 2 years ago

For the following input command: ./walleye -P -f '7k/4Q3/6K1/8/8/8/8/8 w - - 0 1' It first does a search to depth 99, which is unneeded since it is clearly a mate in 1, and then prints the same board over and over instead of terminating program execution.

MitchelPaulin commented 2 years ago

There seems to be an issue in the CLI version where mate does not terminate the program, that is certainly a bug.

As far as always searching to depth 99, that is just an artifact of how I do the time management where the engine just looks until its out of time without checking for an early exit, this will likely be kept as is