in check test
Posted: 07 Jul 2005, 18:17
hi everyone,
quite a few sites tell me to forget about the in check test during search, but there's a couple of things i dont entirely get. i understand that i for a certain move, if one of the children nodes is a move that allows the king to be captured, then the search for that move can be stopped. but does that mean that we have to do incheck test for the leaf nodes? and then i don't really see the gain of leaving out the test when i implement iterative deepening. i'm sure there's something quite obvious i don't see here thx to anyone that enlightens me hehe
also, as an aside, is there a good way to generate valid castling moves? do we need to do the incheck test for every square the king will pass by? i can't seem to read about a good procedure anywhere.
Thanks for the help!!
Wing, newbie
quite a few sites tell me to forget about the in check test during search, but there's a couple of things i dont entirely get. i understand that i for a certain move, if one of the children nodes is a move that allows the king to be captured, then the search for that move can be stopped. but does that mean that we have to do incheck test for the leaf nodes? and then i don't really see the gain of leaving out the test when i implement iterative deepening. i'm sure there's something quite obvious i don't see here thx to anyone that enlightens me hehe
also, as an aside, is there a good way to generate valid castling moves? do we need to do the incheck test for every square the king will pass by? i can't seem to read about a good procedure anywhere.
Thanks for the help!!
Wing, newbie