This should prevent all sorts of weird bugs from happening. It also replicates the behaviour of stockfish. Unfortunately this does mean that successive searches during a real game are slower. But fixing bugs is more important, and performance can be gained back from other things :)
Fixes #3 (hopefully)
This should prevent all sorts of weird bugs from happening. It also replicates the behaviour of stockfish. Unfortunately this does mean that successive searches during a real game are slower. But fixing bugs is more important, and performance can be gained back from other things :)