Error in hash tables?
Posted: 31 Dec 2005, 20:11
[diag]1r3rk1/pbp1ppbp/1npq2p1/8/3PPB2/5NP1/PPQN1P1P/R4RK1 b - - 7 13[/diag]
In this position, during the game, my program played Rbc8 and it allowed to eat up the queen. However when if I configure the position and I tell to the engine that begins to play, then it makes the play normal Qd8, Qd7 or Qb4. (clean hash)
Do I have a problem with the hash tables? It can be that my aleatory number is not enough it, I use the aleatory number that gives Bruce Moreland in its page.
static U64 U64Rand(void)
{
return (U64)rand() ^ ((U64)rand() << 15) ^ ((U64)rand() << 30) ^ ((U64)rand() << 45) ^ ((U64)rand() << 60);
}
This is not the only time that has happened me this, I believe that it happens me in a bigger percentage to 1%, although it is not habitual that the error is so serious, here I realized for the graveness of being left the queen.
When I make a null move, I should upgrade the value of the hash?, I see some programs that make it and other no.
Happy new year,
In this position, during the game, my program played Rbc8 and it allowed to eat up the queen. However when if I configure the position and I tell to the engine that begins to play, then it makes the play normal Qd8, Qd7 or Qb4. (clean hash)
Do I have a problem with the hash tables? It can be that my aleatory number is not enough it, I use the aleatory number that gives Bruce Moreland in its page.
static U64 U64Rand(void)
{
return (U64)rand() ^ ((U64)rand() << 15) ^ ((U64)rand() << 30) ^ ((U64)rand() << 45) ^ ((U64)rand() << 60);
}
This is not the only time that has happened me this, I believe that it happens me in a bigger percentage to 1%, although it is not habitual that the error is so serious, here I realized for the graveness of being left the queen.
When I make a null move, I should upgrade the value of the hash?, I see some programs that make it and other no.
Happy new year,