writing a chess engine

Discussion of chess software programming and technical issues.

Moderator: Ras

User avatar
rvida
Posts: 481
Joined: Thu Apr 16, 2009 12:00 pm
Location: Slovakia, EU

Re: writing a chess engine

Post by rvida »

lucasart wrote:
And of course no SEE pruning when the node itself is in check, although SF seems to do it with success by pruning certain non capture evasions, I'll probably test something that later).
It should work, just make sure to not return false mate scores. If you prune something while in check you should return alpha-1 instead of mated_in(ply).

Richard
lucasart
Posts: 3242
Joined: Mon May 31, 2010 1:29 pm
Full name: lucasart

Re: writing a chess engine

Post by lucasart »

rvida wrote:
lucasart wrote:
And of course no SEE pruning when the node itself is in check, although SF seems to do it with success by pruning certain non capture evasions, I'll probably test something that later).
It should work, just make sure to not return false mate scores. If you prune something while in check you should return alpha-1 instead of mated_in(ply).

Richard
Actually, to avoid that problem, StockFish doesn't do SEE pruning when we're being mated (non PV nodes, where beta=alpha+1<=mated_in(MAX_PLY)).

I'll test your idea, although it seems a little crazy intuitively to do SEE pruning on check evasions, when we know we're already being mated ;) Although the mate is in another branch of the tree that was explored, so it seems to make sense !