I detect stalemates in the search, but not in the quiescent search.ZirconiumX wrote:More stupid thoughts. Do you have a routine for detecting stalemate, or is it done in the search? If the former then you could recycle the code, if the latter you could bring the score closer to zero.
As explained above, I will test a stalemate detection in the qsearch, by coding a sufficient but not necessary test for stalemate (king can't move + no mobile pawn + no pieces).
I've always been too lazy to do it, but if you insistZirconiumX wrote: Also, could you *please* be uci compatible and use 'score mate x' rather than 'score cp (hugenumber-x)'?
Also to be even more UCI compliant, I need to report the lowerbound and upperbound when an aspiration search fails high/low.
