crafty question (Bob)

Discussion of chess software programming and technical issues.

Moderator: Ras

Cardoso
Posts: 363
Joined: Thu Mar 16, 2006 7:39 pm
Location: Portugal
Full name: Alvaro Cardoso

crafty question (Bob)

Post by Cardoso »

Hi,
how did you fixed the backward moves in the killer array due to color flipping back and forward in version 23.3 ?

thanks in advance,
Alvaro
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: crafty question (Bob)

Post by bob »

Cardoso wrote:Hi,
how did you fixed the backward moves in the killer array due to color flipping back and forward in version 23.3 ?

thanks in advance,
Alvaro
I simply improved the "legality checker" code. This is only an issue when I have no move to ponder and start a "puzzling search" to find a ponder move. Since I flip sides, now the killers have moves for opposite sides. By checking to see if a pawn is moving backward, the problem goes away...
User avatar
hgm
Posts: 28405
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: crafty question (Bob)

Post by hgm »

Wouldn't it be better to simply shift the killer array one entry when you start a seach for the opposite color? That seems very cheap,and you would not have to do anything in search.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: crafty question (Bob)

Post by bob »

hgm wrote:Wouldn't it be better to simply shift the killer array one entry when you start a seach for the opposite color? That seems very cheap,and you would not have to do anything in search.
Perhaps. But there are several ways to "change sides" and I elected to keep things simple. Analyze mode is one example, hunting for a move to ponder is another. And there are probably others I have forgotten. Was easier to just make the "legality check" a bit more accurate.