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
crafty question (Bob)
Moderator: Ras
-
Cardoso
- Posts: 363
- Joined: Thu Mar 16, 2006 7:39 pm
- Location: Portugal
- Full name: Alvaro Cardoso
-
bob
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: crafty question (Bob)
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...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
-
hgm
- Posts: 28405
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: crafty question (Bob)
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)
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.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.