Programming A Chess Engine in C Part 53 - Principal Variation Table #3 Retrieval

preview_player
Показать описание
We chatter on this Discord server:

Video series programming a chess engine in C

But really, it's for fun and for free.
Рекомендации по теме
Комментарии
Автор

Hi! I have a question about the function MoveExists. Wouldn't it be faster to check if the move that you are looking for and the one generated are the same before checking if it is a legal move? This way you don't have to make and take so many moves

leonidas_
Автор

Hello! I have a quick question about the necessity of the MoveExists function. If 2 posKeys are hashed to the same index, then the posKey at that index will be overwritten along with the move, right? Then, when ProbePvMove is called, it will check to make sure that the posKey that is stored at that index is the same as the posKey on the board. So, from what I understand, ProvePvMove will never give an illegal move respective to the current board position. Forgive me if I missed something :P. I'm still new to this stuff.

akhilvelagapudi
join shbcf.ru