One way of implementing this would be to search 1 or more moves deeper than usual, swap the search colour then reuse the position cache. If it searched only 1 level deeper then the same result would be reached, but with less thinking time for the AI. More depth -> better moves prepared.
One way of implementing this would be to search 1 or more moves deeper than usual, swap the search colour then reuse the position cache. If it searched only 1 level deeper then the same result would be reached, but with less thinking time for the AI. More depth -> better moves prepared.